Switch to better typescript language server

This commit is contained in:
Krzysiek Wyka 2025-03-01 19:48:40 +01:00
parent ea70daf7b4
commit 9f3b37bc10
5 changed files with 13 additions and 22 deletions

View File

@ -601,7 +601,7 @@ require('lazy').setup({
-- https://github.com/pmizio/typescript-tools.nvim
--
-- But for many setups, the LSP (`ts_ls`) will work just fine
ts_ls = {},
-- ts_ls = {},
--
lua_ls = {
@ -618,6 +618,8 @@ require('lazy').setup({
},
},
},
eslint = {},
}
-- Ensure the servers and tools above are installed
@ -693,10 +695,9 @@ 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 },
json = { { 'prettier' } },
javascript = { { 'prettier' } },
typescript = { { 'prettier' } },
nix = { { 'nixfmt' } },
json = { 'prettier', stop_after_first = true },
javascript = { 'prettier', stop_after_first = true },
typescript = { 'prettier', stop_after_first = true },
},
},
},

View File

@ -1,13 +0,0 @@
return {
{
'AckslD/nvim-neoclip.lua',
dependencies = {
{ 'nvim-telescope/telescope.nvim' },
},
config = function()
require('neoclip').setup()
vim.keymap.set('n', '<leader>sv', ':Telescope neoclip<CR>', { desc = 'Yank history' })
end,
},
}

View File

@ -6,8 +6,6 @@ return {
---@module "auto-session"
---@type AutoSession.Config
opts = {
-- suppressed_dirs = { '~/', '~/Projects', '~/Downloads', '/' },
allowed_dirs = { '~/development/nodejs/work' },
-- log_level = 'debug',
allowed_dirs = { '~/nodejs/work/*', '~/nodejs/private/*', '~/nodejs/playground/', '~/metadata/work/*', '~/golang/*' },
},
}

View File

@ -0,0 +1,5 @@
return {
'pmizio/typescript-tools.nvim',
dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' },
opts = {},
}

View File

@ -5,7 +5,7 @@ return {
config = function()
require('workspace').setup {
workspaces = {
{ name = 'Work', path = '~/development/nodejs/work', keymap = { '<leader>w' } },
{ name = 'Work', path = '~/nodejs/work', keymap = { '<leader>w' } },
},
}