remove ty lsp, vstls

This commit is contained in:
mightypanders 2023-06-01 12:59:42 +02:00
parent 20a47de3e5
commit 9c6fb0b1d1
3 changed files with 15 additions and 43 deletions

View File

@ -1,35 +0,0 @@
local capabilites = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
require'lspconfig'.tsserver.setup{
capabilites = capabilites
}
require'lspconfig'.jsonls.setup{
capabilites = capabilites
}
require'lspconfig'.dockerls.setup{
capabilites = capabilites
}
require'lspconfig'.eslint.setup{
capabilites = capabilites,
settings= {
run = "onSave"
}
}
require'lspconfig'.gdscript.setup{
capabilites = capabilites
}
require'lspconfig'.gopls.setup{
capabilites = capabilites
}
require'lspconfig'.rust_analyzer.setup{
capabilites = capabilites
}
require'lspconfig'.cssls.setup{
capabilites = capabilites
}
require'lspconfig'.bashls.setup{
capabilites = capabilites
}
require'fzf_lsp'.setup()

View File

@ -14,7 +14,7 @@ require 'mason-tool-installer'.setup {
{ 'bash-language-server', auto_update = true }, { 'bash-language-server', auto_update = true },
'lua-language-server', 'lua-language-server',
'vim-language-server', 'vim-language-server',
'typescript-language-server', --'typescript-language-server',
'stylua', 'stylua',
}, },
auto_update = false, auto_update = false,

View File

@ -105,17 +105,24 @@ require('mason-lspconfig').setup_handlers {
settings = {} settings = {}
} }
end, end,
['tsserver'] = function() ['vtsls'] = function()
require('lspconfig')['tsserver'].setup { require('lspconfig')['vtsls'].setup {
on_attach = on_attach, on_attach = on_attach,
flags = lsp_flags, flags = lsp_flags,
settings = {
init_options = {
host_info = 'neovim'
}
}
} }
end, end,
-- ['tsserver'] = function()
--
-- require('lspconfig')['tsserver'].setup {
-- on_attach = on_attach,
-- flags = lsp_flags,
-- settings = {
-- init_options = {
-- host_info = 'neovim'
-- }
-- }
-- }
-- end,
['yamlls'] = function() ['yamlls'] = function()
require('lspconfig')["yamlls"].setup { require('lspconfig')["yamlls"].setup {
on_attach = on_attach, on_attach = on_attach,