1
0
Fork 0

nvim: yamlls

This commit is contained in:
Vladimír Dudr 2023-03-31 12:15:01 +02:00
parent 7879f54cdc
commit 83b2830f3a

View file

@ -189,19 +189,20 @@ local function config() -- {{{
-- Use a loop to conveniently both setup defined servers
-- and map buffer local keybindings when the language server attaches
local servers = {
powershell_es = {},
-- powershell_es = {},
gopls = {},
clangd = {},
zls = {},
hls = {},
-- hls = {},
tsserver = {},
perlls = {},
-- perlls = {},
rust_analyzer = {},
cssls = {},
html = {},
lemminx = {}, -- xml
rnix = {},
omnisharp = { -- {{{
omnisharp = {
-- {{{
handlers = {
['textDocument/definition'] = require('omnisharp_extended').handler,
-- ['textDocument/publishDiagnostics'] = vim.lsp.with(
@ -212,7 +213,7 @@ local function config() -- {{{
-- }
-- ),
},
cmd = { '/usr/bin/omnisharp' },
cmd = { 'omnisharp' },
enable_editorconfig_support = true,
enable_ms_build_load_projects_on_demand = false,
enable_roslyn_analyzers = true,
@ -221,7 +222,8 @@ local function config() -- {{{
sdk_include_prereleases = true,
analyze_open_documents_only = true,
}, -- }}}
lua_ls = { -- {{{
lua_ls = {
-- {{{
settings = {
Lua = {
workleader = {
@ -233,7 +235,8 @@ local function config() -- {{{
},
},
}, -- }}}
phpactor = { -- {{{
phpactor = {
-- {{{
handlers = {
['textDocument/publishDiagnostics'] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
@ -254,15 +257,21 @@ local function config() -- {{{
end)
end,
}, -- }}}
yamlls = { -- {{{
yamlls = {
-- {{{
settings = {
yaml = {
format = { enable = true },
validate = { enable = true },
json = {
schemas = require('schemastore').json.schemas {},
completion = { enable = true },
hover = { enable = true },
schemas = require('schemastore').yaml.schemas(),
keyOrdering = false,
},
},
}, -- }}}
jsonls = { -- {{{
jsonls = {
-- {{{
settings = {
validate = { enable = true },
json = {