Boost tsserver memory defaults; large projects need more
This commit is contained in:
parent
823a2ecfe2
commit
bc409f2328
1 changed files with 12 additions and 0 deletions
|
|
@ -130,7 +130,19 @@ nvim_lsp.diagnosticls.setup {
|
|||
|
||||
nvim_lsp.elmls.setup {
|
||||
}
|
||||
|
||||
local capabilitiesWithoutFomatting = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilitiesWithoutFomatting.textDocument.formatting = false
|
||||
capabilitiesWithoutFomatting.textDocument.rangeFormatting = false
|
||||
capabilitiesWithoutFomatting.textDocument.range_formatting = false
|
||||
|
||||
nvim_lsp.tsserver.setup {
|
||||
init_options = {
|
||||
hostInfo = "neovim",
|
||||
maxTsServerMemory = "8192",
|
||||
preferences = { quotePreference = "single", allowIncompleteCompletions = false },
|
||||
capabilities = capabilitiesWithoutFomatting
|
||||
}
|
||||
}
|
||||
nvim_lsp.elixirls.setup {
|
||||
cmd = { "elixir-ls" };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue