mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-27 05:41:45 +00:00
oil.nvim relative path fix on open file
This commit is contained in:
parent
5b9ada1b4e
commit
db73a4653f
@ -1,3 +1,13 @@
|
|||||||
|
-- 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 {
|
return {
|
||||||
'stevearc/oil.nvim',
|
'stevearc/oil.nvim',
|
||||||
opts = {},
|
opts = {},
|
||||||
|
Loading…
Reference in New Issue
Block a user