Integration with typescript.nvim? #39
-
I was previously using this plugin as part of my daily workflow before switching to Before I had to do something like this, passing in
Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
VonHeikemen
Aug 2, 2022
Replies: 1 comment 1 reply
-
In this case you should use the function local lsp = require('lsp-zero')
lsp.preset('recommended')
lsp.skip_server_setup({'tsserver'})
lsp.setup()
require('typescript').setup({
debug = false,
server = lsp.build_options('tsserver', {})
}) If you need to customize tsserver add your options inside the curly braces. Here is an example. lsp.build_options('tsserver', {
on_attach = function()
print('hello')
end,
settings = {
completions = {
completeFunctionCalls = true
}
}
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zeitchef
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In this case you should use the function
.build_options()
to create the config fortsserver
then pass that to typescript.nvim.If you need to customize tsserver add your options inside the curly braces. Here is an example.