From d2bb5549a093c083417acf974eb4e34041a1dc3f Mon Sep 17 00:00:00 2001 From: Fernando Daciuk Date: Tue, 20 Feb 2024 12:17:35 -0300 Subject: [PATCH] feat: add docs for experimental tsserver --- customization/flags.mdx | 7 +++++++ customization/how-it-works.mdx | 1 + 2 files changed, 8 insertions(+) diff --git a/customization/flags.mdx b/customization/flags.mdx index b324eb9..2fe9d55 100644 --- a/customization/flags.mdx +++ b/customization/flags.mdx @@ -26,3 +26,10 @@ Auto format the code on save if the LSP has this feature. Disable theme auto loading. Use this flag if you want to setup your theme manually without setting `colorscheme` and loading themes automatically. - Options: `true` and `false` - Default: `false` + +### `experimental_tsserver` +Use [`typescript-tools`](https://github.com/pmizio/typescript-tools.nvim) as LSP instead of `tsserver` from [`mason-lspconfig`](https://github.com/williamboman/mason-lspconfig.nvim). +This feature is experimental, but you can enable/disable it any time. +To create your own custom `on_attach` function, you can keep using `lsps.tsserver`, as shown in [Installing LSPs](/customization/installing-lsps) section. + - Options: `true` and `false` + - Default: `false` diff --git a/customization/how-it-works.mdx b/customization/how-it-works.mdx index d7fa2d9..e12ac21 100644 --- a/customization/how-it-works.mdx +++ b/customization/how-it-works.mdx @@ -50,6 +50,7 @@ return { disable_auto_theme_loading = false, disable_tabs = false, format_on_save = false, + experimental_tsserver = false, }, hooks = {}, mappings = {