Skip to content

Commit

Permalink
feat: only refresh codelens for buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Feb 12, 2024
1 parent 0ed4fb3 commit 7fbb0a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/astrolsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ end
---@param client table The LSP client details when attaching
---@param bufnr integer The buffer that the LSP client is attaching to
M.on_attach = function(client, bufnr)
if client.supports_method "textDocument/codeLens" and M.config.features.codelens then vim.lsp.codelens.refresh() end
if client.supports_method "textDocument/codeLens" and M.config.features.codelens then
vim.lsp.codelens.refresh { bufnr = bufnr }
end

local formatting_disabled = vim.tbl_get(M.config, "formatting", "disabled")
if
Expand Down

0 comments on commit 7fbb0a4

Please sign in to comment.