Skip to content
Discussion options

You must be logged in to vote

apparently there is a distinction between client and server capabilities. The above code was supposed to be set on server capabilities. I'm not really sure what the new code is but this is what people used to do:

vim.api.nvim_create_autocmd("LspAttach", { 
  callback = function(args)
     local client = vim.lsp.get_client_by_id(args.data.client_id)
     client.server_capabilities.semanticTokensProvider = nil
 end, });

you can probably translate this code to into something vim.lsp.servers.nil.on_attach accepts.

I think get_client_by_id might be deprecated so if you get a warning follow it i guess

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@emsknock
Comment options

@horriblename
Comment options

@emsknock
Comment options

@horriblename
Comment options

Answer selected by emsknock
@emsknock
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants