(breaking_change) feat: Make setup explicit

Don't setup on its own
This commit is contained in:
Simrat Grewal
2022-08-10 15:33:23 -07:00
parent ed6c058eee
commit 1188ed7201
2 changed files with 3 additions and 14 deletions

View File

@@ -12,6 +12,9 @@ local function setup_global_autocmd()
if config.options.highlight_hovered_item then
vim.cmd "au CursorHold * :lua require('symbols-outline')._highlight_current_item()"
end
vim.cmd "au InsertLeave,WinEnter,BufEnter,BufWinEnter,TabEnter,BufWritePost * :lua require('symbols-outline')._refresh()"
vim.cmd "au WinEnter * lua require'symbols-outline.preview'.close()"
end
-------------------------