Created
April 14, 2023 19:27
-
-
Save dlants/da122f0300e034d19fe0f3da0b3e214d to your computer and use it in GitHub Desktop.
How to debug neovim lsp-config's interaction w/ tsserver / typescript-language-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("lspconfig").tsserver.setup { | |
cmd = {"typescript-language-server", "--stdio", "--log-level", "4"}, | |
init_options = { | |
hostInfo = "neovim", | |
maxTsServerMemory = 4096, | |
tsserver = { | |
logDirectory = <path>, | |
logVerbosity = "verbose" | |
} | |
}, | |
} | |
-- the files will appear in the <path> directory, for example, for me it was | |
-- less /Users/username/.local/state/nvim/tsserver-log-ozW7t8/tsserver.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I needed to do this to figure out a weird OOM / SIGABRT message coming from tsserver.