use pre-defined local variable autocmd (#2816)
This commit is contained in:
parent
cbecbe6b4a
commit
53df5e175a
@ -44,7 +44,7 @@ autocmd("BufWritePost", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- user event that loads after UIEnter + only if file buf is there
|
-- user event that loads after UIEnter + only if file buf is there
|
||||||
vim.api.nvim_create_autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, {
|
autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, {
|
||||||
group = vim.api.nvim_create_augroup("NvFilePost", { clear = true }),
|
group = vim.api.nvim_create_augroup("NvFilePost", { clear = true }),
|
||||||
callback = function(args)
|
callback = function(args)
|
||||||
local file = vim.api.nvim_buf_get_name(args.buf)
|
local file = vim.api.nvim_buf_get_name(args.buf)
|
||||||
|
Loading…
Reference in New Issue
Block a user