docs(typescript): add some docs on how to enable tsgo with vim global

This commit is contained in:
Folke Lemaitre 2026-03-21 06:40:53 +01:00
parent 8bcb620802
commit 6dadcc2065
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -1,3 +1,13 @@
if lazyvim_docs then
-- LSP Server to use for TypeScript.
---@type "vtsls" | "tsgo"
vim.g.lazyvim_ts_lsp = "vtsls" -- currently the default
-- To use the newer, much faster `tsgo` LSP server, either:
-- * enable the `tsgo` extra, or
-- * set `vim.g.lazyvim_ts_lsp = "tsgo"` in your `options.lua`
end
local extra = LazyVim.config.register_defaults("ts_lsp", {
{ name = "vtsls", extra = "lang.typescript.vtsls" },
{ name = "tsgo", extra = "lang.typescript.tsgo" },