Question about codelens #386
-
I'm migrating from rust-tools to rustacean and I'm seeing the following error:
I have the following autocmd that I set for all buffers when a LSP client attaches to it: if client.server_capabilities.code_lens or client.server_capabilities.codeLensProvider then
local group = augroup('LSPRefreshLens')
-- Code Lens
autocmd({ 'BufEnter', 'InsertLeave' }, {
desc = 'Auto show code lenses',
buffer = bufnr,
command = 'silent! lua vim.lsp.codelens.refresh()',
group = group,
}) Is this a problem with rust analyzer? I see this only with rust. The other LSP that also support codelens don't throw this error. Should I not do that for rust? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind... Just saw in the docs that without specifying the buffer it will try for all buffers which might include ones without support for it... |
Beta Was this translation helpful? Give feedback.
Nevermind... Just saw in the docs that without specifying the buffer it will try for all buffers which might include ones without support for it...