aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/mappings.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/mappings.lua')
-rw-r--r--.config/nvim/lua/mappings.lua38
1 files changed, 16 insertions, 22 deletions
diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua
index 549573a..1421ea8 100644
--- a/.config/nvim/lua/mappings.lua
+++ b/.config/nvim/lua/mappings.lua
@@ -1,38 +1,32 @@
-- https://github.com/arnvald/viml-to-lua/blob/main/lua/mappings.lua
vim.cmd('noremap <C-b> :noh<cr>:call clearmatches()<cr>') -- clear matches Ctrl+b
-function map(mode, shortcut, command)
+function Map(mode, shortcut, command)
vim.api.nvim_set_keymap(mode, shortcut, command, { noremap = true, silent = true })
end
-function nmap(shortcut, command)
- map('n', shortcut, command)
+function Nmap(shortcut, command)
+ Map('n', shortcut, command)
end
-function imap(shortcut, command)
- map('i', shortcut, command)
+function Imap(shortcut, command)
+ Map('i', shortcut, command)
end
-function vmap(shortcut, command)
- map('v', shortcut, command)
+function Vmap(shortcut, command)
+ Map('v', shortcut, command)
end
-function cmap(shortcut, command)
- map('c', shortcut, command)
+function Cmap(shortcut, command)
+ Map('c', shortcut, command)
end
-function tmap(shortcut, command)
- map('t', shortcut, command)
+function Tmap(shortcut, command)
+ Map('t', shortcut, command)
end
-
--- PLUGINS
---local builtin = require('telescope.builtin')
---vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
---vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
---vim.api.nvim_set_keymap( 'n', '<leader>fw', '<cmd>lua require(\'telescope.builtin\').grep_string({search = vim.fn.expand("<cword>")})<cr>', {})
---vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
---vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
-
-
-
+--- pane nav
+Nmap("<c-k>", ":wincmd k<CR>")
+Nmap("<c-j>", ":wincmd j<CR>")
+Nmap("<c-h>", ":wincmd h<CR>")
+Nmap("<c-l>", ":wincmd l<CR>")