diff --git a/nvim/lua/maps.lua b/nvim/lua/maps.lua index c823727..7308f71 100644 --- a/nvim/lua/maps.lua +++ b/nvim/lua/maps.lua @@ -4,22 +4,31 @@ local map = vim.api.nvim_set_keymap -- Configuration fast editing. local opts = {noremap = true, silent = true} -map('n', 'confr', ':source $HOME/lib/nvim/init.lua\n', opts) -map('n', 'confe', ':e $HOME/lib/nvim/init.lua\n', opts) --- File tree. -map('n', '\\ft', ':NvimTreeFocus\n', opts) -map('n', '\\fT', ':NvimTreeToggle .\n', opts) --- Tabs. -map('n', '\\tn', ':tabnew\n', opts) + map('n', '\\econf', ':source $HOME/lib/nvim/init.lua\n', opts) + map('n', '\\rconf', ':e $HOME/lib/nvim/init.lua\n', opts) + map('n', '\\rmap', ':source $HOME/lib/nvim/lua/maps.lua\n', opts) + map('n', '\\emap', ':e $HOME/lib/nvim/lua/maps.lua\n', opts) +-- File tree.s + map('n', '\\home', ":cd $HOME | NvimTreeClose | NvimTreeOpen .;\n", opts) + map('n', '\\ft', ':NvimTreeFocus\n', opts) + map('n', '\\fT', ':NvimTreeToggle .\n', opts) + +-- Tabs. + map('n', '\\tn', ':tabnew\n', opts) -- Windows -- Moving opts = {silent = true} - map('n', '', 'l', opts) - map('n', '', 'h', opts) - map('n', '', 'k', opts) - map('n', '', 'j', opts) + map('n', '', 'l', opts) + map('n', '', 'h', opts) + map('n', '', 'k', opts) + map('n', '', 'j', opts) + -- Resizing + map('n', '', '+', opts) + map('n', '', '-', opts) + map('n', '', '3<', opts) + map('n', '', '3>', opts) -- Splitting map('n', '\\|', 'v', opts) map('n', '\\-', 's', opts)