neovim config
This commit is contained in:
5
nvim/lua/keymap.lua
Normal file
5
nvim/lua/keymap.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.keymap.set("n", "<space><space>", "<cmd> :noh<CR>", { desc = "Clear search highlighting" })
|
||||
|
||||
-- Find and replace visual selection using CTRL-r
|
||||
vim.keymap.set("v", "<C-r>", "\"hy:%s/<C-r>h//gc<left><left><left>")
|
||||
Reference in New Issue
Block a user