diff options
| author | Tom <tapayne88@users.noreply.github.com> | 2021-08-06 16:01:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-06 11:01:19 -0400 |
| commit | a160835f129d474bd8289ff7106157031133e31e (patch) | |
| tree | 81a7855822d191f5cf95c8aeaf7a0d411a3a6fc9 /lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-a160835f129d474bd8289ff7106157031133e31e.tar nvim-lspconfig-a160835f129d474bd8289ff7106157031133e31e.tar.gz nvim-lspconfig-a160835f129d474bd8289ff7106157031133e31e.tar.bz2 nvim-lspconfig-a160835f129d474bd8289ff7106157031133e31e.tar.lz nvim-lspconfig-a160835f129d474bd8289ff7106157031133e31e.tar.xz nvim-lspconfig-a160835f129d474bd8289ff7106157031133e31e.tar.zst nvim-lspconfig-a160835f129d474bd8289ff7106157031133e31e.zip | |
feat(tsserver): support yarn PnP (#1078)
added hostInfo to init_options to allow yarn pnp sdk to identify editor and patch paths appropriately.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/tsserver.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/lspconfig/tsserver.lua b/lua/lspconfig/tsserver.lua index 76c21359..44d92fdd 100644 --- a/lua/lspconfig/tsserver.lua +++ b/lua/lspconfig/tsserver.lua @@ -9,6 +9,7 @@ end configs[server_name] = { default_config = { + init_options = { hostInfo = 'neovim' }, cmd = { bin_name, '--stdio' }, filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx', 'typescript', 'typescriptreact', 'typescript.tsx' }, root_dir = function(fname) |
