fix: leave netrw autocmds intact when default_file_explorer = false (#135)
This commit is contained in:
parent
0138a2e0f9
commit
789b486fb5
1 changed files with 2 additions and 1 deletions
|
|
@ -815,7 +815,8 @@ M.setup = function(opts)
|
|||
M[method](unpack(args.fargs))
|
||||
end, { desc = "Open oil file browser on a directory", nargs = "*", complete = "dir" })
|
||||
local aug = vim.api.nvim_create_augroup("Oil", {})
|
||||
if vim.fn.exists("#FileExplorer") then
|
||||
|
||||
if config.default_file_explorer and vim.fn.exists("#FileExplorer") then
|
||||
vim.api.nvim_create_augroup("FileExplorer", { clear = true })
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue