typescript-tools.nvim
typescript-tools.nvim copied to clipboard
Integrating with volar 2
This commit in nvim-lspconfig mentions that vue integration is now done via a tsserver plugin instead of using volar in take-over-mode. I think I got that working with typescript-tools.nvim
, by installing @vue/typescript-plugin
globally and adding this to my setup:
require("typescript-tools").setup {
filetypes = {
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue", -- This needed to be added.
},
settings = {
tsserver_plugins = {
-- Seemingly this is enough, no name, location or languages needed.
"@vue/typescript-plugin",
},
},
}
From what I can tell I think I go it working, but I am running into this problem as well. It seems to only happen in vue files, so it might just as well be volar, that's misbehaving and not typescript-tools.
Is there anything else we need to do for this setup? Also it might be good to add this setup to typescript-tools.nvim
's README once vue integration fully works.