Switch to better typescript language server
This commit is contained in:
parent
ea70daf7b4
commit
9f3b37bc10
11
init.lua
11
init.lua
|
|
@ -601,7 +601,7 @@ require('lazy').setup({
|
||||||
-- https://github.com/pmizio/typescript-tools.nvim
|
-- https://github.com/pmizio/typescript-tools.nvim
|
||||||
--
|
--
|
||||||
-- But for many setups, the LSP (`ts_ls`) will work just fine
|
-- But for many setups, the LSP (`ts_ls`) will work just fine
|
||||||
ts_ls = {},
|
-- ts_ls = {},
|
||||||
--
|
--
|
||||||
|
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
|
|
@ -618,6 +618,8 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
eslint = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Ensure the servers and tools above are installed
|
-- 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
|
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||||
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||||
json = { { 'prettier' } },
|
json = { 'prettier', stop_after_first = true },
|
||||||
javascript = { { 'prettier' } },
|
javascript = { 'prettier', stop_after_first = true },
|
||||||
typescript = { { 'prettier' } },
|
typescript = { 'prettier', stop_after_first = true },
|
||||||
nix = { { 'nixfmt' } },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -6,8 +6,6 @@ return {
|
||||||
---@module "auto-session"
|
---@module "auto-session"
|
||||||
---@type AutoSession.Config
|
---@type AutoSession.Config
|
||||||
opts = {
|
opts = {
|
||||||
-- suppressed_dirs = { '~/', '~/Projects', '~/Downloads', '/' },
|
allowed_dirs = { '~/nodejs/work/*', '~/nodejs/private/*', '~/nodejs/playground/', '~/metadata/work/*', '~/golang/*' },
|
||||||
allowed_dirs = { '~/development/nodejs/work' },
|
|
||||||
-- log_level = 'debug',
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
return {
|
||||||
|
'pmizio/typescript-tools.nvim',
|
||||||
|
dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' },
|
||||||
|
opts = {},
|
||||||
|
}
|
||||||
|
|
@ -5,7 +5,7 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
require('workspace').setup {
|
require('workspace').setup {
|
||||||
workspaces = {
|
workspaces = {
|
||||||
{ name = 'Work', path = '~/development/nodejs/work', keymap = { '<leader>w' } },
|
{ name = 'Work', path = '~/nodejs/work', keymap = { '<leader>w' } },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue