From 36b5ac02b91ffc4d6901c5031b0f73b57e334f70 Mon Sep 17 00:00:00 2001 From: Alec Goncharow Date: Tue, 9 Jan 2024 14:28:13 -0500 Subject: yak shaving much to do about nothing, outlines from lspsage, some matching, some tpope plugins, flailing sql things might be too bloated but let's try it --- .config/nvim/lua/mappings.lua | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) (limited to '.config/nvim/lua/mappings.lua') 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 :noh:call clearmatches()') -- 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', 'ff', builtin.find_files, {}) ---vim.keymap.set('n', 'fg', builtin.live_grep, {}) ---vim.api.nvim_set_keymap( 'n', 'fw', 'lua require(\'telescope.builtin\').grep_string({search = vim.fn.expand("")})', {}) ---vim.keymap.set('n', 'fb', builtin.buffers, {}) ---vim.keymap.set('n', 'fh', builtin.help_tags, {}) - - - +--- pane nav +Nmap("", ":wincmd k") +Nmap("", ":wincmd j") +Nmap("", ":wincmd h") +Nmap("", ":wincmd l") -- cgit v1.2.3-70-g09d2