jose-elias-alvarez / typescript.nvim

A Lua plugin, written in TypeScript, to write TypeScript (Lua optional).
The Unlicense
499 stars 31 forks source link

Question: should this plugin be installed with the lspconfig? #65

Open dustinboston opened 1 year ago

dustinboston commented 1 year ago

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?

jose-elias-alvarez commented 1 year ago

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.