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:
1 file changed
+11
@@ -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'),
|
||||
|
||||
Reference in new issue
Block a user