Key mapper changes
This commit is contained in:
1
init.lua
1
init.lua
@ -17,3 +17,4 @@ require('plugins/neoscroll')
|
|||||||
require('plugins/marks')
|
require('plugins/marks')
|
||||||
require('plugins/null-ls')
|
require('plugins/null-ls')
|
||||||
require('plugins/nvim-mapper')
|
require('plugins/nvim-mapper')
|
||||||
|
--`require('plugins/nvim-octo')
|
||||||
|
|||||||
@ -46,3 +46,10 @@ map('n', '<leader>ff', ':Telescope find_files<CR>', default_opts)
|
|||||||
map('n', '<leader>fg', ':Telescope live_grep<CR>', default_opts)
|
map('n', '<leader>fg', ':Telescope live_grep<CR>', default_opts)
|
||||||
map('n', '<leader>fb', ':Telescope buffers<CR>', default_opts)
|
map('n', '<leader>fb', ':Telescope buffers<CR>', default_opts)
|
||||||
map('n', '<leader>fe', ':Telescope file_browser<CR>', default_opts)
|
map('n', '<leader>fe', ':Telescope file_browser<CR>', default_opts)
|
||||||
|
|
||||||
|
Mapper = require("nvim-mapper")
|
||||||
|
local M = Mapper.map
|
||||||
|
-- For Neovim >= 0.7.0
|
||||||
|
M('n', '<leader>P', ":MarkdownPreview<CR>", {silent = true, noremap = true}, "Markdown", "md_preview", "Display Markdown preview in Qutebrowser")
|
||||||
|
M('n', '<leader>fe', ":Telescope file_browser<CR>", {silent=true, noremap=true}, "Telescope", "telescope-file-browser", "Find files and directories in telescope")
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ require("nvim-mapper").setup({
|
|||||||
no_map = false,
|
no_map = false,
|
||||||
-- where should ripgrep look for your keybinds definitions.
|
-- where should ripgrep look for your keybinds definitions.
|
||||||
-- Default config search path is ~/.config/nvim/lua
|
-- Default config search path is ~/.config/nvim/lua
|
||||||
search_path = os.getenv("HOME") .. "/.config/nvim/lua",
|
search_path = os.getenv("~/.config/nvim/lua/keymaps.lua"),
|
||||||
-- what should be done with the selected keybind when pressing enter.
|
-- what should be done with the selected keybind when pressing enter.
|
||||||
-- Available actions:
|
-- Available actions:
|
||||||
-- * "definition" - Go to keybind definition (default)
|
-- * "definition" - Go to keybind definition (default)
|
||||||
|
|||||||
@ -20,6 +20,13 @@ return require'packer'.startup(function()
|
|||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Manage all your Keymaps!
|
||||||
|
use {
|
||||||
|
"lazytanuki/nvim-mapper",
|
||||||
|
config = function() require("nvim-mapper").setup{} end,
|
||||||
|
before = "telescope.nvim"
|
||||||
|
}
|
||||||
|
|
||||||
-- Neovim Autocomplete with LSP
|
-- Neovim Autocomplete with LSP
|
||||||
use {
|
use {
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
@ -82,13 +89,6 @@ return require'packer'.startup(function()
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Manage all your Keymaps!
|
|
||||||
use {
|
|
||||||
"lazytanuki/nvim-mapper",
|
|
||||||
config = function() require("nvim-mapper").setup{} end,
|
|
||||||
before = "telescope.nvim"
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Close your brackets easily
|
-- Close your brackets easily
|
||||||
use {
|
use {
|
||||||
'windwp/nvim-autopairs',
|
'windwp/nvim-autopairs',
|
||||||
|
|||||||
@ -13,7 +13,6 @@ local telescope_installer = require('telescope').setup({
|
|||||||
-- map actions.which_key to <C-h> (default: <C-/>)
|
-- map actions.which_key to <C-h> (default: <C-/>)
|
||||||
-- actions.which_key shows the mappings for your picker,
|
-- actions.which_key shows the mappings for your picker,
|
||||||
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
|
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
|
||||||
["<C-h>"] = "which_key"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -29,6 +28,10 @@ local telescope_installer = require('telescope').setup({
|
|||||||
hijack_netrw = true,
|
hijack_netrw = true,
|
||||||
mappings = {
|
mappings = {
|
||||||
["i"] = {
|
["i"] = {
|
||||||
|
["<C-c>"] = fb_actions.create,
|
||||||
|
["<C-r>"] = fb_actions.remove,
|
||||||
|
["<C-p>"] = fb_actions.copy,
|
||||||
|
["<C-m>"] = fb_actions.move,
|
||||||
},
|
},
|
||||||
["n"] = {
|
["n"] = {
|
||||||
|
|
||||||
@ -39,3 +42,4 @@ local telescope_installer = require('telescope').setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
require("telescope").load_extension "file_browser"
|
require("telescope").load_extension "file_browser"
|
||||||
|
require("telescope").load_extension "mapper"
|
||||||
|
|||||||
@ -335,38 +335,38 @@ _G.packer_plugins = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
time([[Defining packer_plugins]], false)
|
time([[Defining packer_plugins]], false)
|
||||||
-- Config for: todo-comments.nvim
|
|
||||||
time([[Config for todo-comments.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18todo-comments\frequire\0", "config", "todo-comments.nvim")
|
|
||||||
time([[Config for todo-comments.nvim]], false)
|
|
||||||
-- Config for: tmux.nvim
|
|
||||||
time([[Config for tmux.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\ttmux\frequire\0", "config", "tmux.nvim")
|
|
||||||
time([[Config for tmux.nvim]], false)
|
|
||||||
-- Config for: nvim-mapper
|
|
||||||
time([[Config for nvim-mapper]], true)
|
|
||||||
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\16nvim-mapper\frequire\0", "config", "nvim-mapper")
|
|
||||||
time([[Config for nvim-mapper]], false)
|
|
||||||
-- Config for: mkdnflow.nvim
|
|
||||||
time([[Config for mkdnflow.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n<EFBFBD>\2\0\0\6\0\23\0\0316\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\21\0005\3\5\0005\4\4\0005\5\3\0>\5\1\4=\4\6\0035\4\b\0005\5\a\0>\5\1\4=\4\t\0035\4\v\0005\5\n\0>\5\1\4=\4\f\0035\4\14\0005\5\r\0>\5\1\4=\4\15\0035\4\17\0005\5\16\0>\5\1\4=\4\18\0035\4\19\0=\4\20\3=\3\22\2B\0\2\1K\0\1\0\rmappings\1\0\0\19MkdnFollowLink\1\3\0\0\6n\14<leader>p\rMkdnSTab\1\3\0\0\0\f<S-Tab>\1\2\0\0\6i\fMkdnTab\1\3\0\0\0\n<Tab>\1\2\0\0\6i\14MkdnEnter\1\3\0\0\0\t<CR>\1\2\0\0\6n\20MkdnNewListItem\1\3\0\0\0\t<CR>\1\2\0\0\6i\19MkdnToggleToDo\1\0\1\22MkdnTableNextCell\1\1\3\0\0\0\14<C-Space>\1\3\0\0\6i\6n\nsetup\rmkdnflow\frequire\0", "config", "mkdnflow.nvim")
|
|
||||||
time([[Config for mkdnflow.nvim]], false)
|
|
||||||
-- Config for: telescope.nvim
|
|
||||||
time([[Config for telescope.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14telescope\frequire\0", "config", "telescope.nvim")
|
|
||||||
time([[Config for telescope.nvim]], false)
|
|
||||||
-- Config for: trouble.nvim
|
-- Config for: trouble.nvim
|
||||||
time([[Config for trouble.nvim]], true)
|
time([[Config for trouble.nvim]], true)
|
||||||
try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0", "config", "trouble.nvim")
|
try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0", "config", "trouble.nvim")
|
||||||
time([[Config for trouble.nvim]], false)
|
time([[Config for trouble.nvim]], false)
|
||||||
|
-- Config for: telescope.nvim
|
||||||
|
time([[Config for telescope.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14telescope\frequire\0", "config", "telescope.nvim")
|
||||||
|
time([[Config for telescope.nvim]], false)
|
||||||
|
-- Config for: mkdnflow.nvim
|
||||||
|
time([[Config for mkdnflow.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n<EFBFBD>\2\0\0\6\0\23\0\0316\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\21\0005\3\5\0005\4\4\0005\5\3\0>\5\1\4=\4\6\0035\4\b\0005\5\a\0>\5\1\4=\4\t\0035\4\v\0005\5\n\0>\5\1\4=\4\f\0035\4\14\0005\5\r\0>\5\1\4=\4\15\0035\4\17\0005\5\16\0>\5\1\4=\4\18\0035\4\19\0=\4\20\3=\3\22\2B\0\2\1K\0\1\0\rmappings\1\0\0\19MkdnFollowLink\1\3\0\0\6n\14<leader>p\rMkdnSTab\1\3\0\0\0\f<S-Tab>\1\2\0\0\6i\fMkdnTab\1\3\0\0\0\n<Tab>\1\2\0\0\6i\14MkdnEnter\1\3\0\0\0\t<CR>\1\2\0\0\6n\20MkdnNewListItem\1\3\0\0\0\t<CR>\1\2\0\0\6i\19MkdnToggleToDo\1\0\1\22MkdnTableNextCell\1\1\3\0\0\0\14<C-Space>\1\3\0\0\6i\6n\nsetup\rmkdnflow\frequire\0", "config", "mkdnflow.nvim")
|
||||||
|
time([[Config for mkdnflow.nvim]], false)
|
||||||
-- Config for: nvim-autopairs
|
-- Config for: nvim-autopairs
|
||||||
time([[Config for nvim-autopairs]], true)
|
time([[Config for nvim-autopairs]], true)
|
||||||
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
||||||
time([[Config for nvim-autopairs]], false)
|
time([[Config for nvim-autopairs]], false)
|
||||||
|
-- Config for: nvim-mapper
|
||||||
|
time([[Config for nvim-mapper]], true)
|
||||||
|
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\16nvim-mapper\frequire\0", "config", "nvim-mapper")
|
||||||
|
time([[Config for nvim-mapper]], false)
|
||||||
|
-- Config for: tmux.nvim
|
||||||
|
time([[Config for tmux.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\ttmux\frequire\0", "config", "tmux.nvim")
|
||||||
|
time([[Config for tmux.nvim]], false)
|
||||||
-- Config for: mind.nvim
|
-- Config for: mind.nvim
|
||||||
time([[Config for mind.nvim]], true)
|
time([[Config for mind.nvim]], true)
|
||||||
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tmind\frequire\0", "config", "mind.nvim")
|
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tmind\frequire\0", "config", "mind.nvim")
|
||||||
time([[Config for mind.nvim]], false)
|
time([[Config for mind.nvim]], false)
|
||||||
|
-- Config for: todo-comments.nvim
|
||||||
|
time([[Config for todo-comments.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18todo-comments\frequire\0", "config", "todo-comments.nvim")
|
||||||
|
time([[Config for todo-comments.nvim]], false)
|
||||||
|
|
||||||
_G._packer.inside_compile = false
|
_G._packer.inside_compile = false
|
||||||
if _G._packer.needs_bufread == true then
|
if _G._packer.needs_bufread == true then
|
||||||
|
|||||||
Reference in New Issue
Block a user