From 23df368b00bda0ed4a01fac92f7ad80998c1d34a Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 21 May 2022 16:48:47 +0200 Subject: refactor: load the default options once (#2592) BREAKING CHANGE: modifying the default options for keymaps and autocmds is now done by overwriting them, since they won't be loaded into the global `lvim` table anymore * refactor: use the lua-commands api * refactor!: use the lua-autocmds api * fix(settings): let neovim handle spellfile * feat: add log:set_log_level() * chore: update examples * chore: add deprecation notice for custom_groups --- lua/lvim/lsp/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/lvim/lsp/init.lua') diff --git a/lua/lvim/lsp/init.lua b/lua/lvim/lsp/init.lua index 5bdebe52..2f3258c9 100644 --- a/lua/lvim/lsp/init.lua +++ b/lua/lvim/lsp/init.lua @@ -50,10 +50,10 @@ end function M.common_on_exit(_, _) if lvim.lsp.document_highlight then - pcall(vim.api.nvim_del_augroup_by_name, "lsp_document_highlight") + autocmds.clear_augroup "lsp_document_highlight" end if lvim.lsp.code_lens_refresh then - pcall(vim.api.nvim_del_augroup_by_name, "lsp_code_lens_refresh") + autocmds.clear_augroup "lsp_code_lens_refresh" end end -- cgit v1.2.3