typescript.nvim icon indicating copy to clipboard operation
typescript.nvim copied to clipboard

Question: should this plugin be installed with the lspconfig?

Open dustinboston opened this issue 2 years ago • 1 comments

I'm still early in my transition to the neovim ecosystem of plugins. I have typescript configured with the lspconfig settings and it seems to be working.

lspconfig.tsserver.setup {
    capabilities = capabilities,
    on_attach = on_attach
}

However, most of the files I'm working with look like this:

image

I also have treesitter installed and typescript configured there as well. So I thought it might help to install typescript.nvim to get better language support. Is this right?

dustinboston avatar Mar 17 '23 15:03 dustinboston

Yes, this plugin depends on nvim-lspconfig but has a different setup method. You should follow the instructions there and make sure you are no longer calling lspconfig.tsserver.setup anywhere in your config.

As for your highlighting issues - it looks like it has something to do with your treesitter config and / or colorscheme, neither of which is LSP-related.

jose-elias-alvarez avatar Mar 20 '23 14:03 jose-elias-alvarez