(chore): Removed old ls
This commit is contained in:
@@ -1,45 +1,44 @@
|
|||||||
-- import mason plugin safely
|
-- import mason plugin safely
|
||||||
local mason_status, mason = pcall(require, "mason")
|
local mason_status, mason = pcall(require, "mason")
|
||||||
if not mason_status then
|
if not mason_status then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- import mason-lspconfig plugin safely
|
-- import mason-lspconfig plugin safely
|
||||||
local mason_lspconfig_status, mason_lspconfig = pcall(require, "mason-lspconfig")
|
local mason_lspconfig_status, mason_lspconfig = pcall(require, "mason-lspconfig")
|
||||||
if not mason_lspconfig_status then
|
if not mason_lspconfig_status then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- import mason-null-ls plugin safely
|
-- import mason-null-ls plugin safely
|
||||||
local mason_null_ls_status, mason_null_ls = pcall(require, "mason-null-ls")
|
local mason_null_ls_status, mason_null_ls = pcall(require, "mason-null-ls")
|
||||||
if not mason_null_ls_status then
|
if not mason_null_ls_status then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- enable mason
|
-- enable mason
|
||||||
mason.setup()
|
mason.setup()
|
||||||
|
|
||||||
mason_lspconfig.setup({
|
mason_lspconfig.setup({
|
||||||
-- list of servers for mason to install
|
-- list of servers for mason to install
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"tsserver",
|
"tsserver",
|
||||||
"html",
|
"html",
|
||||||
"cssls",
|
"cssls",
|
||||||
"tailwindcss",
|
"tailwindcss",
|
||||||
"sumneko_lua",
|
"emmet_ls",
|
||||||
"emmet_ls",
|
},
|
||||||
},
|
-- auto-install configured servers (with lspconfig)
|
||||||
-- auto-install configured servers (with lspconfig)
|
automatic_installation = true, -- not the same as ensure_installed
|
||||||
automatic_installation = true, -- not the same as ensure_installed
|
|
||||||
})
|
})
|
||||||
|
|
||||||
mason_null_ls.setup({
|
mason_null_ls.setup({
|
||||||
-- list of formatters & linters for mason to install
|
-- list of formatters & linters for mason to install
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"prettier", -- ts/js formatter
|
"prettier", -- ts/js formatter
|
||||||
"stylua", -- lua formatter
|
"stylua", -- lua formatter
|
||||||
"eslint_d", -- ts/js linter
|
"eslint_d", -- ts/js linter
|
||||||
},
|
},
|
||||||
-- auto-install configured formatters & linters (with null-ls)
|
-- auto-install configured formatters & linters (with null-ls)
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user