Key mapper changes
This commit is contained in:
@ -3,7 +3,7 @@ require("nvim-mapper").setup({
|
||||
no_map = false,
|
||||
-- where should ripgrep look for your keybinds definitions.
|
||||
-- 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.
|
||||
-- Available actions:
|
||||
-- * "definition" - Go to keybind definition (default)
|
||||
|
||||
@ -20,6 +20,13 @@ return require'packer'.startup(function()
|
||||
'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
|
||||
use {
|
||||
'hrsh7th/nvim-cmp',
|
||||
@ -82,13 +89,6 @@ return require'packer'.startup(function()
|
||||
end
|
||||
}
|
||||
|
||||
-- Manage all your Keymaps!
|
||||
use {
|
||||
"lazytanuki/nvim-mapper",
|
||||
config = function() require("nvim-mapper").setup{} end,
|
||||
before = "telescope.nvim"
|
||||
}
|
||||
|
||||
-- Close your brackets easily
|
||||
use {
|
||||
'windwp/nvim-autopairs',
|
||||
|
||||
@ -13,7 +13,6 @@ local telescope_installer = require('telescope').setup({
|
||||
-- map actions.which_key to <C-h> (default: <C-/>)
|
||||
-- actions.which_key shows the mappings for your 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,
|
||||
mappings = {
|
||||
["i"] = {
|
||||
["<C-c>"] = fb_actions.create,
|
||||
["<C-r>"] = fb_actions.remove,
|
||||
["<C-p>"] = fb_actions.copy,
|
||||
["<C-m>"] = fb_actions.move,
|
||||
},
|
||||
["n"] = {
|
||||
|
||||
@ -39,3 +42,4 @@ local telescope_installer = require('telescope').setup({
|
||||
})
|
||||
|
||||
require("telescope").load_extension "file_browser"
|
||||
require("telescope").load_extension "mapper"
|
||||
|
||||
Reference in New Issue
Block a user