diff --git a/.config/nvim/lua/config/maps.lua b/.config/nvim/lua/config/maps.lua new file mode 100644 --- /dev/null +++ b/.config/nvim/lua/config/maps.lua @@ -0,0 +1,19 @@ + +local map = vim.keymap +local opts = {noremap = true, silent = true} + +map.set("n", "", ":20Lexplore", opts) +map.set("n", "", "n", opts) +map.set("n", "", "N", opts) +map.set("", "", ":let v:hlsearch = !v:hlsearch", opts) +-- map.set("n", "", ":UndotreeToggle", opts) +-- map.set("n", "", ":TagbarToggle", opts) + +-- Allow :noh even in insert mode +map.set("i", "", "") + +-- cover for search habit +map.set("c", "", "") + +map.set("n", "cd", ":cd %:p:h:pwd") +