move to nvim lua and lsp
This commit is contained in:
parent
fc16a5466b
commit
b63772bd4d
18 changed files with 692 additions and 323 deletions
33
.config/nvim/after/plugin/mason.lua
Normal file
33
.config/nvim/after/plugin/mason.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
local mason_status, mason = pcall(require, "mason")
|
||||
if not mason_status then
|
||||
return
|
||||
end
|
||||
|
||||
local mason_lspconfig_status, mason_lspconfig = pcall(require, "mason-lspconfig")
|
||||
if not mason_lspconfig_status then
|
||||
return
|
||||
end
|
||||
|
||||
local mason_null_ls_status, mason_null_ls = pcall(require, "mason-null-ls")
|
||||
if not mason_null_ls_status then
|
||||
return
|
||||
end
|
||||
|
||||
mason.setup()
|
||||
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = {
|
||||
"tsserver",
|
||||
"html",
|
||||
"cssls",
|
||||
"sumneko_lua",
|
||||
}
|
||||
})
|
||||
|
||||
mason_null_ls.setup({
|
||||
ensure_installed = {
|
||||
"prettier",
|
||||
"stylua",
|
||||
"eslint_d",
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue