Updating null ls and lsp
This commit is contained in:
@@ -81,3 +81,9 @@ lspconfig["pyright"].setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
})
|
||||
|
||||
lspconfig["powershell_es"].setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
bundle_path = vim.fn.stdpath("data") .. "/mason/packages/powershell-editor-services"
|
||||
})
|
||||
|
||||
@@ -22,6 +22,8 @@ mason_lspconfig.setup({
|
||||
"cssls",
|
||||
"lua_ls",
|
||||
"pyright",
|
||||
"powershell_es",
|
||||
|
||||
},
|
||||
automatic_installation = true,
|
||||
})
|
||||
@@ -29,8 +31,7 @@ mason_lspconfig.setup({
|
||||
mason_null_ls.setup({
|
||||
ensure_installed = {
|
||||
"stylua",
|
||||
"clang_format",
|
||||
"eslint_d",
|
||||
"clang-format",
|
||||
},
|
||||
automatic_installation = true,
|
||||
})
|
||||
|
||||
@@ -9,11 +9,6 @@ local diagnostics = null_ls.builtins.diagnostics
|
||||
null_ls.setup({
|
||||
sources = {
|
||||
formatting.stylua,
|
||||
diagnostics.eslint_d.with({
|
||||
condition = function(utils)
|
||||
return utils.root_has_file(".eslintrc.js")
|
||||
end,
|
||||
}),
|
||||
formatting.clang_format,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user