From 072382200256ca103c518a0f31aed1df0415b025 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 26 Sep 2024 16:52:58 +0300 Subject: feat: removed lazy loading from oil to not have loading issues --- .config/nvim/lua/custom/plugins/oil.lua | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to '.config') diff --git a/.config/nvim/lua/custom/plugins/oil.lua b/.config/nvim/lua/custom/plugins/oil.lua index 5e5bbd2..06616cc 100644 --- a/.config/nvim/lua/custom/plugins/oil.lua +++ b/.config/nvim/lua/custom/plugins/oil.lua @@ -1,12 +1,7 @@ return { 'stevearc/oil.nvim', dependencies = { 'nvim-tree/nvim-web-devicons' }, - keys = { - { 'of', 'Oil', desc = '[O]il [F]ilesystem' }, - { 'oF', 'lua require("oil").toggle_float', desc = '[O]il [F]ilesystem (float)' }, - { 'fo', 'Oil', desc = '[F]ilesystem [O]il' }, - { 'fO', 'lua require("oil").toggle_float', desc = '[F]ilesystem [O]il (float)' }, - }, + keys = { { 'fo', 'Oil', desc = '[F]ilesystem [O]il' } }, opts = { default_file_explorer = true, skip_confirm_for_simple_edits = true, @@ -19,7 +14,7 @@ return { [''] = 'actions.select_split', [''] = 'actions.select_vsplit', [''] = 'actions.refresh', - [''] = 'actions.close', + ['Q'] = 'actions.close', ['gS'] = 'actions.change_sort', }, view_options = { @@ -28,9 +23,5 @@ return { }, }, cmd = 'Oil', - event = function() - if vim.fn.isdirectory(vim.fn.expand('%')) == 1 then - return 'VimEnter' - end - end, + event = 'VimEnter', } -- cgit v1.3.1