mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-21 20:11:06 +00:00
docs(typescript): add some docs on how to enable tsgo with vim global
This commit is contained in:
parent
8bcb620802
commit
6dadcc2065
1 changed files with 10 additions and 0 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue