Skip to content

Commit

Permalink
fix(tsserver): improve performance
Browse files Browse the repository at this point in the history
ref: sublimelsp/LSP-typescript#129

```
 narrowed down my LSP-TypeScript slowness issues to the autocomplete,
 namely that there were a ton of suggestions populating the results in
 one of my large monorepo projects.
 Adding this to my LSP-typescript.sublime-settings has helped
 tremendously:

{
	"initializationOptions": {
		"preferences": {
			"includeCompletionsForModuleExports": false
		}
	}
}
````
  • Loading branch information
mishudark committed Jan 22, 2023
1 parent 1995979 commit 6c0c1b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/config/lsp/clients.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ require("typescript").setup({
disable_commands = false,
debug = false,
server = {
init_options = {
hostInfo = 'neovim',
preferences = {
includeCompletionsForModuleExports = false
},
},
on_attach = function(client, bufnr)
lsputils.default_on_attach(client, bufnr)
keymap.set(
Expand Down

0 comments on commit 6c0c1b4

Please sign in to comment.