Removing svelte

This commit is contained in:
2024-10-06 20:00:57 +02:00
parent ab5470adc8
commit 8f2b91ea5c
2 changed files with 20 additions and 20 deletions

View File

@@ -33,8 +33,8 @@ return {
"yamlls",
"eslint",
"bashls",
"svelte",
"tailwindcss",
"ts_ls",
}
for _, lsp in ipairs(defaultLsps) do
@@ -77,26 +77,27 @@ return {
})
-- typescript tools
local cwd = vim.fn.getcwd()
local tsserver_path = cwd .. "/node_modules/.bin/tsserver"
-- local cwd = vim.fn.getcwd()
-- local tsserver_path = cwd .. "/node_modules/.bin/tsserver"
--
-- local cmd = ""
-- if vim.loop.fs_stat(tsserver_path) then
-- cmd = tsserver_path
-- else
-- cmd = "typescript-language-server"
-- end
local cmd = ""
if vim.loop.fs_stat(tsserver_path) then
cmd = tsserver_path
else
cmd = "typescript-language-server"
end
typescript_tools.setup({
--[[ typescript_tools.setup({
capabilities = capabilities,
on_attach = function(client, bufnr)
on_attach(client, bufnr)
if cmd == "typescript-language-server" then
vim.notify("Using global tsserver")
end
end,
-- on_attach = function(client, bufnr)
-- on_attach(client, bufnr)
-- if cmd == "typescript-language-server" then
-- vim.notify("Using global tsserver")
-- end
-- end,
on_attach = on_attach,
settings = {
cmd = { cmd, "--stdio" },
-- cmd = { cmd, "--stdio" },
tsserver_file_preferences = {
includeInlayParameterNameHints = "all",
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
@@ -109,7 +110,7 @@ return {
quotePreference = "auto",
},
},
})
}) ]]
tserrortranslator.setup()
end,

View File

@@ -35,7 +35,6 @@ return {
"rust_analyzer",
"yamlls",
"bashls",
"svelte",
"tailwindcss",
},
automatic_installation = true,