summaryrefslogtreecommitdiff
path: root/lua/config/map.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/map.lua')
-rw-r--r--lua/config/map.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/config/map.lua b/lua/config/map.lua
index 058acbf..27c6bb9 100644
--- a/lua/config/map.lua
+++ b/lua/config/map.lua
@@ -4,6 +4,7 @@ local map = vim.keymap.set
vim.g.mapleader = " "
vim.g.maplocalleader = ","
+
-- open config
map("n", " c", function()
vim.cmd("cd ~/.config/nvim")
@@ -13,6 +14,8 @@ end, { desc = "Open neovim config file" })
map("v", "J", ":m '>+1<CR>gv=gv", { desc = "Move selected text up" })
map("v", "K", ":m '<-2<CR>gv=gv", { desc = "Move selected text down" })
+map("n", "<M-b>", "<cmd>make<cr>", { desc = "Make" })
+
-- better find next and previous
map("n", "n", "nzzzv", { desc = "Keep cursor in middle with search" })
map("n", "N", "Nzzzv", { desc = "Keep cursor in middle with search" })