From b3aff0982c6883314d5a2031f312c6ca19231f02 Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Tue, 10 Feb 2026 20:28:21 -0600 Subject: [PATCH 1/2] initialize typescript and typescriptreact files for formating --- init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index ca5f2819..0c3b812b 100644 --- a/init.lua +++ b/init.lua @@ -698,10 +698,13 @@ require('lazy').setup({ -- -- You can use 'stop_after_first' to run the first available formatter from the list javascript = { 'prettierd', 'prettier', stop_after_first = true }, + typescript = { 'prettierd', 'prettier', stop_after_first = true }, + typescriptreact = { 'prettierd', 'prettier', stop_after_first = true }, }, }, }, + --FIX: typescript-lsp: This is not working for typescript { -- Autocompletion 'saghen/blink.cmp', event = 'VimEnter', @@ -796,9 +799,9 @@ require('lazy').setup({ }, }, + -- THEMES { 'catppuccin/nvim', name = 'catppuccin', priority = 1000 }, { 'rose-pine/neovim', name = 'rose-pine', priority = 1000 }, - { -- You can easily change to a different colorscheme. -- Change the name of the colorscheme plugin below, and then -- change the command in the config to whatever the name of that colorscheme is. From 71005c5fa683b2a5c237c46a66e8f1a338506924 Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Tue, 10 Feb 2026 20:43:04 -0600 Subject: [PATCH 2/2] replace tsserver with typescript-tools plugin --- init.lua | 9 --------- lua/custom/plugins/typescript-tools.lua | 5 +++++ 2 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 lua/custom/plugins/typescript-tools.lua diff --git a/init.lua b/init.lua index 0c3b812b..8185fdae 100644 --- a/init.lua +++ b/init.lua @@ -601,13 +601,6 @@ require('lazy').setup({ -- gopls = {}, pyright = {}, -- rust_analyzer = {}, - -- - -- TODO: look into typescript-tools.nvim - -- Some languages (like typescript) have entire language plugins that can be useful: - -- https://github.com/pmizio/typescript-tools.nvim - -- - -- But for many setups, the LSP (`ts_ls`) will work just fine - -- ts_ls = {}, } -- Ensure the servers and tools above are installed @@ -622,7 +615,6 @@ require('lazy').setup({ 'lua-language-server', -- Lua Language server 'stylua', -- Used to format Lua code -- You can add other tools here that you want Mason to install - 'typescript-language-server', -- Typescript Language Server 'omnisharp', -- C# Language Server }) @@ -704,7 +696,6 @@ require('lazy').setup({ }, }, - --FIX: typescript-lsp: This is not working for typescript { -- Autocompletion 'saghen/blink.cmp', event = 'VimEnter', diff --git a/lua/custom/plugins/typescript-tools.lua b/lua/custom/plugins/typescript-tools.lua new file mode 100644 index 00000000..ba7fb204 --- /dev/null +++ b/lua/custom/plugins/typescript-tools.lua @@ -0,0 +1,5 @@ +return { + 'pmizio/typescript-tools.nvim', + dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' }, + opts = {}, +}