move plugin related settings inside plugin config for consistency

This commit is contained in:
Baipyrus 2024-10-22 14:49:39 +02:00
parent 3c7dfc4a3e
commit 8296b55962

View File

@ -1,3 +1,9 @@
return {
{
'stevearc/oil.nvim',
-- Optional dependencies
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
-- Fix oil absolute path to relative path conversion
vim.api.nvim_create_augroup('OilRelPathFix', {})
vim.api.nvim_create_autocmd('BufLeave', {
@ -8,12 +14,6 @@ vim.api.nvim_create_autocmd('BufLeave', {
end,
})
return {
{
'stevearc/oil.nvim',
-- Optional dependencies
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
local oil = require 'oil'
oil.setup {
view_options = {