diff options
Diffstat (limited to 'neovim/.config/nvim/lua/keybinds.lua')
-rw-r--r-- | neovim/.config/nvim/lua/keybinds.lua | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/neovim/.config/nvim/lua/keybinds.lua b/neovim/.config/nvim/lua/keybinds.lua index d84e5e4..8eb7ead 100644 --- a/neovim/.config/nvim/lua/keybinds.lua +++ b/neovim/.config/nvim/lua/keybinds.lua @@ -38,11 +38,10 @@ map("n", "<leader>y", "<cmd>!echo $(pwd)/% | xclip -selection clipboard<CR>") map("n", "<C-c>", ":!compile %<cr><cr>") -- Move to the next/previous buffer --- map("n", "<leader>[", "<CMD>bp<CR>") --- map("n", "<leader>]", "<CMD>bn<CR>") - --- Move to last buffer --- map("n", """", "<CMD>b#<CR>") +map("n", "<leader>[", "<CMD>bp<CR>") +map("n", "<leader>]", "<CMD>bn<CR>") +-- Close current buffer +map("n", "<leader>\\", "<CMD>bd<CR>") -- Telescope binds local Telescope = setmetatable({}, { @@ -57,9 +56,9 @@ local Telescope = setmetatable({}, { -- Help map("n", "<leader>fh", Telescope.help_tags) -- Files with match -map("n", "<leader>ff", Telescope.live_grep) +map("n", "<leader>fp", Telescope.live_grep) -- Project files -map("n", "<leader>fp", Telescope.find_files) +map("n", "<leader>ff", Telescope.find_files) -- Changed git files map("n", "<leader>fc", Telescope.git_status) -- Git files |