diff options
author | davidpkj <davidpenkow1@gmail.com> | 2024-04-17 18:35:12 +0200 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2024-04-17 18:35:12 +0200 |
commit | 15b131da12cf4975307d4f7618a1f2902a1a9dc9 (patch) | |
tree | daf6cfab9bcfb3b79840fede465b585432537926 /neovim/.config/nvim/lua/keybinds.lua | |
parent | 5b9f5d92c4b6961049179598a235db60bed6ecbf (diff) |
potato update
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 |