diff --git a/init.lua b/init.lua index b913d91..f5954c3 100644 --- a/init.lua +++ b/init.lua @@ -53,3 +53,4 @@ require('lazy').setup({ -- Plugin keymaps require 'editor.keymaps.plugins.telescope' require 'editor.keymaps.plugins.lsp' +require 'editor.keymaps.plugins.oil' diff --git a/lazy-lock.json b/lazy-lock.json index 5e84069..92e2fae 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -22,12 +22,12 @@ "nvim-lspconfig": { "branch": "master", "commit": "c580f34bc5fdca8aaf737a9ab8a5d775cb940e57" }, "nvim-treesitter": { "branch": "master", "commit": "b4897f5a8453e7efeafb21ff5b2bbdc2e3faf1bd" }, "nvim-web-devicons": { "branch": "master", "commit": "f0267921c845c42685968401bc49aa65e18d3e09" }, + "oil.nvim": { "branch": "master", "commit": "254bc6635cb3f77e6e9a89155652f368e5535160" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope.nvim": { "branch": "master", "commit": "4522d7e3ea75ffddabdc39957168a8a7060b5df0" }, "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" }, - "vim-blade": { "branch": "master", "commit": "9534101808cc320eef003129a40cab04b026a20c" }, "vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" }, "vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" }, "which-key.nvim": { "branch": "main", "commit": "8ab96b38a2530eacba5be717f52e04601eb59326" } diff --git a/lua/editor/keymaps/plugins/oil.lua b/lua/editor/keymaps/plugins/oil.lua new file mode 100644 index 0000000..c1200b4 --- /dev/null +++ b/lua/editor/keymaps/plugins/oil.lua @@ -0,0 +1 @@ +vim.keymap.set('n', '\\', require('oil').open_float, { desc = 'Open parent directory' }) diff --git a/lua/plugins/core/oil.lua b/lua/plugins/core/oil.lua new file mode 100644 index 0000000..077ed07 --- /dev/null +++ b/lua/plugins/core/oil.lua @@ -0,0 +1,6 @@ +return { + 'stevearc/oil.nvim', + opts = {}, + -- Optional dependencies + -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons +} diff --git a/lua/plugins/core/neo-tree.lua b/lua/plugins/optional/neo-tree.lua similarity index 79% rename from lua/plugins/core/neo-tree.lua rename to lua/plugins/optional/neo-tree.lua index bd44226..8784565 100644 --- a/lua/plugins/core/neo-tree.lua +++ b/lua/plugins/optional/neo-tree.lua @@ -11,13 +11,13 @@ return { }, cmd = 'Neotree', keys = { - { '\\', ':Neotree reveal', desc = 'NeoTree reveal', silent = true }, + -- { '\\', ':Neotree reveal', desc = 'NeoTree reveal', silent = true }, }, opts = { filesystem = { window = { mappings = { - ['\\'] = 'close_window', + -- ['\\'] = 'close_window', }, }, },