From e59421d2a0c6aadb95b1d14e35c25bda1133accf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 6 Mar 2025 03:46:41 +0100 Subject: [PATCH] Add typescriptreact to ts lsp config --- home/editor/neovim/plugins.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/editor/neovim/plugins.lua b/home/editor/neovim/plugins.lua index de7ac26..7b09429 100644 --- a/home/editor/neovim/plugins.lua +++ b/home/editor/neovim/plugins.lua @@ -17,7 +17,7 @@ lsp_zero.format_on_save({ ['gopls'] = { 'go' }, ['nil_ls'] = { 'nix' }, ['lua_ls'] = { 'lua' }, - ['ts_ls'] = { 'typescript', 'javascript' }, + ['ts_ls'] = { 'typescript', 'javascript', 'typescriptreact' }, }, }) -- LSP: go @@ -120,6 +120,7 @@ lspconfig.ts_ls.setup({ filetypes = { "typescript", "javascript", + "typescriptreact", }, })