fix: add autocmd to augroup
This commit is contained in:
parent
7b703b42da
commit
5e2f1ced9f
1 changed files with 2 additions and 0 deletions
|
|
@ -566,6 +566,7 @@ M.setup = function(opts)
|
|||
})
|
||||
vim.api.nvim_create_autocmd("BufWinEnter", {
|
||||
desc = "Set/unset oil window options",
|
||||
group = aug,
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
local view = require("oil.view")
|
||||
|
|
@ -577,6 +578,7 @@ M.setup = function(opts)
|
|||
end,
|
||||
})
|
||||
vim.api.nvim_create_autocmd("BufAdd", {
|
||||
desc = "Detect directory buffer and open oil file browser",
|
||||
group = aug,
|
||||
pattern = "*",
|
||||
nested = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue