diff options
author | kylo252 <[email protected]> | 2022-05-25 13:35:38 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-05-25 13:35:38 +0200 |
commit | fc63a66ce8d26ab7acf5e178b85d0f69b097ca7e (patch) | |
tree | 1dc5ddb0ec1cdd1d225ded33f157a890699fc348 /lua/lvim/lsp/init.lua | |
parent | aa4c9930d9131c60d7a6f2e9bec8a2f3ba6c4055 (diff) | |
parent | 6dbba1f9597e0ba090702aea41357c29874aab7c (diff) |
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/lsp/init.lua')
-rw-r--r-- | lua/lvim/lsp/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lvim/lsp/init.lua b/lua/lvim/lsp/init.lua index 13fafae0..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 @@ -74,7 +74,7 @@ function M.common_on_attach(client, bufnr) if lvim.lsp.document_highlight then lu.setup_document_highlight(client, bufnr) end - if lvim.lsp.code_lens_refresh == false then + if lvim.lsp.code_lens_refresh then lu.setup_codelens_refresh(client, bufnr) end add_lsp_buffer_keybindings(bufnr) |