24 lines
597 B
Nix
24 lines
597 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
lib.optionalString (lib.elem "nvim::lsp::yaml" config.machine.pkgs) # lua
|
|
''
|
|
lspconfig.yamlls.setup({
|
|
cmd = { "${pkgs.yaml-language-server}/bin/yaml-language-server", "--stdio" },
|
|
settings = {
|
|
yaml = {
|
|
schemaStore = {
|
|
-- Disable to use Store from SchemaStore-nvim plugin
|
|
enable = false,
|
|
-- Avoid TypeError: Cannot read properties of undefined (reading 'length')
|
|
url = "",
|
|
},
|
|
schemas = require('schemastore').yaml.schemas(),
|
|
},
|
|
},
|
|
})
|
|
''
|