From 6dadcc206547993bf03bffdaec5e8417c94b6ca8 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 21 Mar 2026 06:40:53 +0100 Subject: [PATCH] docs(typescript): add some docs on how to enable tsgo with vim global --- lua/lazyvim/plugins/extras/lang/typescript/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/typescript/init.lua b/lua/lazyvim/plugins/extras/lang/typescript/init.lua index 70a10ae8..825d3ba6 100644 --- a/lua/lazyvim/plugins/extras/lang/typescript/init.lua +++ b/lua/lazyvim/plugins/extras/lang/typescript/init.lua @@ -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" },