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