Skip to content

Commit 4108ca9

Browse files
authored
Merge branch 'AstroNvim:main' into main
2 parents a90aaeb + 49a7161 commit 4108ca9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/plugins/astrolsp.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ return {
7171
-- the rest of the autocmd options (:h nvim_create_autocmd)
7272
desc = "Refresh codelens (buffer)",
7373
callback = function(args)
74-
if require("astrolsp").config.features.codelens then vim.lsp.codelens.refresh { bufnr = args.buf } end
74+
if require("astrolsp").config.features.codelens then vim.lsp.codelens.enable(true, { bufnr = args.buf }) end
7575
end,
7676
},
7777
},
@@ -89,7 +89,7 @@ return {
8989
function() require("astrolsp.toggles").buffer_semantic_tokens() end,
9090
desc = "Toggle LSP semantic highlight (buffer)",
9191
cond = function(client)
92-
return client.supports_method "textDocument/semanticTokens/full" and vim.lsp.semantic_tokens ~= nil
92+
return client:supports_method "textDocument/semanticTokens/full" and vim.lsp.semantic_tokens ~= nil
9393
end,
9494
},
9595
},

0 commit comments

Comments
 (0)