Closed jemag closed 3 years ago
Same problem with jsonls:
and same configuration as working ones again:
require'lspconfig'.jsonls.setup{
on_attach = function(client)
on_attach_common(client)
end,
}
and for yamlls:
Unrelated, but you can use the following syntax for your config:
require'lspconfig'.gopls.setup{
on_attach = on_attach_common
}
As for the error, those language servers don't support textDocument/documentHighlight
which is the part of the LSP that vim-illuminate uses. The best I can do is improve the error message (or I might just hide the error msg) so it makes more sense, but this will mean vim-illuminate doesn't work for those language servers. You can still use normal vim-illuminate functionality (regex based highlighting) if you don't call require 'illuminate'.on_attach
for those language servers.
Turns the lsp client returns a nil bufnr when the server doesn't implement a call, now it fails silently.
Thank you for the clarification and the lua tip
Plugin does not seem to work with lsp configuration for terraformls language server.![image](https://user-images.githubusercontent.com/7985687/103466867-2d07bb00-4d17-11eb-8d90-9f2459a7a586.png)
Does work properly for others, like gopls, bashls, tsserver with same configuration: