Replies: 2 comments 2 replies
-
Hey, interesting! So installing "npm" packages via As for running installed packages via lspconfig.tsserver.setup {
cmd = { "bun", "run", "--bun", "typescript-language-server", "--stdio" }
} This should execute the I don't believe Bun has full parity with Node.js yet, so use at own risk! |
Beta Was this translation helpful? Give feedback.
-
I tried to modify the lsp cmd, but the compatibility of bun is so poor that typescript-language-server cannot run successfully. |
Beta Was this translation helpful? Give feedback.
-
Hello,
https://github.com/williamboman/mason.nvim/blob/main/lua/mason-registry/index/typescript-language-server/init.lua. tsserver is installed using npm, which is probably preferred as it is stable. However there have been reports of big performance gains when using tsserver installed via bun, see reddit post. Is there a way to get npm packages installed via bun instead while still using mason?
Beta Was this translation helpful? Give feedback.
All reactions