more nvim tweak

This commit is contained in:
François
2025-11-19 17:53:38 +01:00
parent a1e26b01ab
commit 300b58b88d
3 changed files with 29 additions and 3 deletions

View File

@@ -31,3 +31,9 @@ map("n", "<A-p>", "<Cmd>BufferPin<CR>")
--map("n", "<leader>s", ":%s//g<Left><Left>") --replace all
map("n", "<leader>t", ":NvimTreeToggle<CR>") --open file explorer
map("n", "<leader>l", ":Twilight<CR>") --surrounding dim
-- fzf and grep
map("n", "<leader>f", ":lua require('fzf-lua').files()<CR>") --search cwd
map("n", "<leader>Fr", ":lua require('fzf-lua').resume()<CR>") --last search
map("n", "<leader>g", ":lua require('fzf-lua').grep()<CR>") --grep
map("n", "<leader>G", ":lua require('fzf-lua').grep_cword()<CR>") --grep word under cursor