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

View File

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