feat(lua): disable conform on VimLeavePre to avoid LSP shutdown race

Prevents LSP shutdown race by disabling conform before exit
This commit is contained in:
sankalp committed 2026-07-01 09:57:00 +05:45
1 parent 847ffbe703
commit 0fe748fe4e
1 file changed
+11
+11
View File
@@ -241,6 +241,17 @@ vim.api.nvim_create_autocmd({ 'InsertLeave' }, {
end,
})
-- Disable conform during VimLeavePre to prevent LSP shutdown race
vim.api.nvim_create_autocmd('VimLeavePre', {
group = augroup('disable_conform_on_exit'),
pattern = '*',
callback = function()
for _, buf in ipairs(vim.api.nvim_list_bufs()) do
vim.b[buf].conform_disable = true
end
end,
})
-- Autoinstall missing plugins on startup
vim.api.nvim_create_autocmd('VimEnter', {
group = augroup('autoinstall'),