From fc009bb7f08992a0ed4b0f7802966bb82f7bf66c Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Tue, 28 Dec 2021 23:04:00 +0300 Subject: [PATCH] Change filetypes for tsserver LSP --- config/nvim/lua/lsp.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/nvim/lua/lsp.lua b/config/nvim/lua/lsp.lua index 9602e44..cf5a25d 100644 --- a/config/nvim/lua/lsp.lua +++ b/config/nvim/lua/lsp.lua @@ -128,6 +128,13 @@ lsp_installer.on_server_ready(function(server) } end + if server.name == "tsserver" then + opts.filetypes = { + "javascript", "javascriptreact", "typescript", "typescriptreact", + "svelte", "html" + } + end + setupLspSignature() server:setup(opts)