mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-11-14 21:13:49 +00:00
move plugin related settings inside plugin config for consistency
This commit is contained in:
parent
3c7dfc4a3e
commit
8296b55962
@ -1,19 +1,19 @@
|
||||
-- Fix oil absolute path to relative path conversion
|
||||
vim.api.nvim_create_augroup('OilRelPathFix', {})
|
||||
vim.api.nvim_create_autocmd('BufLeave', {
|
||||
group = 'OilRelPathFix',
|
||||
pattern = 'oil:///*',
|
||||
callback = function()
|
||||
vim.cmd 'cd .'
|
||||
end,
|
||||
})
|
||||
|
||||
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', {
|
||||
group = 'OilRelPathFix',
|
||||
pattern = 'oil:///*',
|
||||
callback = function()
|
||||
vim.cmd 'cd .'
|
||||
end,
|
||||
})
|
||||
|
||||
local oil = require 'oil'
|
||||
oil.setup {
|
||||
view_options = {
|
||||
|
Loading…
Reference in New Issue
Block a user