Removing svelte
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user