mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-09 17:04:36 +02:00
fix(autocmds): last_loc autocmd didn't work correctly for first opened file
This commit is contained in:
parent
7272b3e4b5
commit
0cc80b1b05
2 changed files with 5 additions and 1 deletions
|
@ -168,9 +168,10 @@ function M.lazy_file()
|
|||
pattern = event.pattern,
|
||||
modeline = false,
|
||||
buffer = event.buf,
|
||||
data = event.data,
|
||||
data = { lazy_file = true },
|
||||
})
|
||||
end
|
||||
vim.api.nvim_exec_autocmds("CursorMoved", { modeline = false })
|
||||
events = {}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue