mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-03-18 08:09:40 +00:00
Update neovim
This commit is contained in:
@@ -5,7 +5,22 @@ end
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
local servers = { "jsonls", "sumneko_lua", "pyright" }
|
||||
local servers = {
|
||||
"bashls",
|
||||
"clangd",
|
||||
"cssls",
|
||||
"diagnosticls",
|
||||
"emmet_ls",
|
||||
"html",
|
||||
"jsonls",
|
||||
"marksman",
|
||||
"pyright",
|
||||
"rust_analyzer",
|
||||
"sumneko_lua",
|
||||
"taplo",
|
||||
"vimls",
|
||||
"yamlls",
|
||||
}
|
||||
|
||||
lsp_installer.setup({
|
||||
ensure_installed = servers,
|
||||
|
||||
@@ -85,6 +85,15 @@ M.on_attach = function(client, bufnr)
|
||||
if client.name == "sumneko_lua" then
|
||||
client.resolved_capabilities.document_formatting = false
|
||||
end
|
||||
if client.name == "diagnosticls" then
|
||||
client.resolved_capabilities.document_formatting = false
|
||||
end
|
||||
if client.name == "html" then
|
||||
client.resolved_capabilities.document_formatting = false
|
||||
end
|
||||
if client.name == "jsonls" then
|
||||
client.resolved_capabilities.document_formatting = false
|
||||
end
|
||||
lsp_keymaps(bufnr)
|
||||
lsp_highlight_document(client)
|
||||
end
|
||||
|
||||
@@ -16,6 +16,9 @@ null_ls.setup({
|
||||
formatting.stylua,
|
||||
formatting.rustfmt,
|
||||
formatting.beautysh,
|
||||
formatting.djhtml,
|
||||
formatting.tidy,
|
||||
formatting.stylelint,
|
||||
-- diagnostics.luacheck,
|
||||
diagnostics.pylint,
|
||||
diagnostics.zsh,
|
||||
|
||||
Reference in New Issue
Block a user