----------------------------------------------------------- -- Keymaps of Neovim and installed plugins. ----------------------------------------------------------- local map = vim.api.nvim_set_keymap local default_opts = { noremap = true, silent = true } -- Fast saving with and s map('n', 's', ':w', default_opts) map('n', 'a', ':w|:luafile %', default_opts) map('i', 's', ':w', default_opts) -- Move around splits using Ctrl + {h,j,k,l} map('n', '', 'h', default_opts) map('n', '', 'j', default_opts) map('n', '', 'k', default_opts) map('n', '', 'l', default_opts) -- Neovim Tab Navgation via Vem-Tabline map('n', 't', ':tabnew', default_opts) map('n', 'e', ':bnext', default_opts) map('n', 'w', ':bprev', default_opts) map('n', 'd', ':bdelete', default_opts) map('n', 'r', 'vem_move_buffer_right', default_opts) map('n', 'q', 'vem_move_buffer_left', default_opts) ----------------------------------------------------------- -- Applications and Plugins shortcuts ----------------------------------------------------------- -- nvim-tree map('n', 'n', ':NvimTreeToggle', default_opts) -- open/close map('n', 'q', ':NvimTreeRefresh', default_opts) -- refresh -- Place Check box for To-Do style Lists map('i','', '* [ ] ', default_opts) map('n', '', '* [ ] ', default_opts) -- Nvim Tree Resize map('n', '=', ':NvimTreeResize +1', default_opts) map('n', '-', ':NvimTreeResize -1', default_opts) map('n', '==', ':NvimTreeResize +10', default_opts) map('n', '--', ':NvimTreeResize -10', default_opts)