nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.47k stars 288 forks source link

fix outline autocommand group issue. follow up #1304 #1306

Closed gwenyambira closed 1 year ago

gwenyambira commented 1 year ago

This fix address an error being thrown when reopening the outline, and is a follow up to #1304. The autocommand group outline is initialised on line 18 of outline.lua. The clean_ctx() function deletes the outline group by id (nvim_del_augroup_by_id). This function is called when closing the outline. Attempting to reopen the outline causes an error to be thrown, as the autocommand group ID given has been deleted. This fix recreates the outline group in the outline_normal_win() and outline_in_float() functions, allowing a valid ID to be used when the outline is refreshed.