Updating null ls and lsp

This commit is contained in:
2023-09-01 00:07:48 +02:00
parent 2eaafbc10e
commit 7c528c7475
3 changed files with 9 additions and 7 deletions

View File

@@ -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"
})

View File

@@ -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,
})

View File

@@ -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,
},
})