diff --git a/init.lua b/init.lua index 9808d290..6f3ad1a0 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,4 @@ ---[[ +--[[init ===================================================================== ==================== READ THIS BEFORE CONTINUING ==================== @@ -160,6 +160,11 @@ require('lazy').setup({ }, }, + { + 'stevearc/oil.nvim', + opts = {}, + }, + --- vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }), -- NOTE: Plugins can also be configured to run Lua code when they are loaded. -- -- This is often very useful to both group configuration, as well as handle @@ -174,7 +179,6 @@ require('lazy').setup({ -- Then, because we use the `config` key, the configuration only runs -- after the plugin has been loaded: -- config = function() ... end - { -- Useful plugin to show you pending keybinds. 'folke/which-key.nvim', event = 'VimEnter', -- Sets the loading event to 'VimEnter' diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 940b4117..270bce78 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -93,6 +93,14 @@ vim.keymap.set('n', 'c#', '*``cgN') vim.keymap.set('n', 'L', '$') vim.keymap.set('n', 'H', '^') +vim.keymap.set('n', 'J', '}') +vim.keymap.set('n', 'K', '{') + +vim.keymap.set('n', '', 'ggVG"+y') +vim.keymap.set('x', '<', '', '>gv') + +vim.keymap.set('x', 'p', 'P') vim.api.nvim_set_keymap('n', '', ':lua InsertTodo()', { noremap = true, silent = true }) vim.api.nvim_set_keymap('i', '', '// todo: ', { noremap = true, silent = true }) @@ -100,6 +108,8 @@ vim.api.nvim_set_keymap('i', '', '// todo: ', { noremap = true, silent = tr vim.api.nvim_set_keymap('n', '', ':lua InsertId()', { noremap = true, silent = true }) vim.api.nvim_set_keymap('i', '', '[Id()]', { noremap = true, silent = true }) +vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }) + -- See `:help wincmd` for a list of all window commands vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' })