fix(autocmds): make sure we are using codelens correctly (#2576)

This commit is contained in:
Abouzar Parvan 2022-05-06 14:12:55 +04:30 committed by GitHub
parent be5afb5b77
commit f7ba2c8902
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View file

@ -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)