.config/nvim/lua/config/maps.lua

Tue, 14 Feb 2023 02:54:12 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 14 Feb 2023 02:54:12 -0600
changeset 1021
f0756bba5d2f
parent 1020
b1b644e9825d
child 1022
d509e282ae10
permissions
-rw-r--r--

Add some plugin config


local map = vim.keymap
local opts = {noremap = true, silent = true}

map.set("n", "<F2>", ":20Lexplore<CR>", opts)
map.set("n", "<F3>", "n", opts)
map.set("n", "<S-F3>", "N", opts)
map.set("",  "<F4>", ":let v:hlsearch = !v:hlsearch<CR>", opts)
map.set("n", "<F5>", ":UndotreeToggle<CR>", opts)
map.set("n", "<F8>", ":TagbarToggle<CR>", opts)

-- Allow :noh even in insert mode
map.set("i", "<F4>", "<C-O><F4>")

-- cover for search habit
map.set("c", "<F3>", "<CR>", opts)

map.set("n", "<leader>cd", ":cd %:p:h<CR>:pwd<CR>", opts)

map.set("n", "<C-h>", "<C-w>h", opts)
map.set("n", "<C-j>", "<C-w>j", opts)
map.set("n", "<C-k>", "<C-w>k", opts)
map.set("n", "<C-l>", "<C-w>l", opts)
map.set("n", "<C-\\>", "<C-w>p", opts)

map.set("n", "gb", "<C-^>", opts)
map.set("n", "gB", ":ls<CR>:b ", {noremap = true})

mercurial