pmizio / typescript-tools.nvim

⚡ TypeScript integration NeoVim deserves ⚡
MIT License
1.45k stars 40 forks source link

autostart option #241

Closed timsofteng closed 3 months ago

timsofteng commented 7 months ago

Hello. I'm used to start lsp automatically and I use "autostart = false" option in nvim-lspconfig. Is it possible to integrate it with typescript-tools?

KostkaBrukowa commented 3 months ago

You can add autostart = false in the config and it should work fine example:

require("typescript-tools").setup({
  autostart = false,
  settings = {
    tsserver_file_preferences = {
      importModuleSpecifierPreference = "non-relative",
      includePackageJsonAutoImports = "off",
    },
    tsserver_plugins = { "typescript-plugin-css-modules", "@vue/typescript-plugin" },
    separate_diagnostic_server = true,
    publish_diagnostic_on = "insert_leave",
  },
})