improving startup time by using lazy loading or filetype loading
This commit is contained in:
parent
bdb655c5a1
commit
7f1b34fd6f
62 changed files with 1285 additions and 561 deletions
26
lua/custom/plugins/oil.lua
Executable file
26
lua/custom/plugins/oil.lua
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
return {
|
||||
'stevearc/oil.nvim',
|
||||
dependencies = {
|
||||
'kyazdani42/nvim-web-devicons', -- Lazy dependency for devicons
|
||||
},
|
||||
config = function()
|
||||
require('oil').setup({
|
||||
columns = {
|
||||
'icon',
|
||||
-- 'permissions',
|
||||
},
|
||||
keymaps = {
|
||||
['C-h'] = false,
|
||||
['M-h'] = 'actions.select_split',
|
||||
},
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { noremap = true, silent = true, desc = 'Open parent directory' })
|
||||
vim.keymap.set('n', '<leader>-', function() require('oil').toggle_float() end,
|
||||
{ noremap = true, silent = true, desc = 'Toggle oil floating window' })
|
||||
end,
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue