neovim config

This commit is contained in:
2025-03-09 20:59:55 +03:00
parent bdab2117f3
commit 972a43b01f
10 changed files with 305 additions and 0 deletions

5
nvim/lua/keymap.lua Normal file
View 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>")