nvim-vtsls icon indicating copy to clipboard operation
nvim-vtsls copied to clipboard

Increasing maxTsServerMemory

Open guilherme-takata opened this issue 10 months ago • 1 comments

I'm using LazyVim and constantly facing issues with increasing the memory size on the tsserver, tried adding the option through the lsp config plugin, but it didn´t have any effect.

Here's what I tried:


return {
  "neovim/nvim-lspconfig",
  opts = function()
    servers = {
      vtsls = {
        initialization_options = {
          typescript = {
            tsserver = {
              maxTsServerMemory=32768,
            },
          },
        },
      },
    }
  end,
}

Do I need to change this in another location or try something else?

guilherme-takata avatar Feb 24 '25 17:02 guilherme-takata

initialization_options -> settings

yioneko avatar Feb 24 '25 17:02 yioneko