fix(config): fixed issues related to LazyFile. Fixes #1601

This commit is contained in:
Folke Lemaitre
2023-10-06 15:40:27 +02:00
parent a1c5886947
commit 6e0e01f5b4
2 changed files with 34 additions and 11 deletions

View File

@ -32,9 +32,6 @@ vim.api.nvim_create_autocmd({ "VimResized" }, {
vim.api.nvim_create_autocmd("BufReadPost", {
group = augroup("last_loc"),
callback = function(event)
if event.data and event.data.lazy_file then
return
end
local exclude = { "gitcommit" }
local buf = event.buf
if vim.tbl_contains(exclude, vim.bo[buf].filetype) then