neovim

mrgrouse's beloved, handmade neovim configuration
Log | Files | Refs | README

keymaps.lua (412B)


      1 local map = vim.keymap.set
      2 ----- move to window
      3 map("n", "<C-h>", "<C-w>h", { desc = "Go to Left Window"  })
      4 map("n", "<C-j>", "<C-w>j", { desc = "Go to Lower Window" })
      5 map("n", "<C-k>", "<C-w>k", { desc = "Go to Upper Window" })
      6 map("n", "<C-l>", "<C-w>l", { desc = "Go to Right Window" })
      7 
      8 --- clear search with escape
      9 --map({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", { desc = "Escape and Clear hlsearch" })