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", {
|
vim.api.nvim_create_autocmd("BufWinEnter", {
|
||||||
desc = "Set/unset oil window options",
|
desc = "Set/unset oil window options",
|
||||||
|
group = aug,
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
callback = function()
|
callback = function()
|
||||||
local view = require("oil.view")
|
local view = require("oil.view")
|
||||||
|
|
@ -577,6 +578,7 @@ M.setup = function(opts)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
vim.api.nvim_create_autocmd("BufAdd", {
|
vim.api.nvim_create_autocmd("BufAdd", {
|
||||||
|
desc = "Detect directory buffer and open oil file browser",
|
||||||
group = aug,
|
group = aug,
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
nested = true,
|
nested = true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue