diff --git a/config/plugins/lsp/lsp.nix b/config/plugins/lsp/lsp.nix index cf286a1..14e1472 100644 --- a/config/plugins/lsp/lsp.nix +++ b/config/plugins/lsp/lsp.nix @@ -7,15 +7,36 @@ servers = { html = {enable = true;}; lua-ls = {enable = true;}; - nil_ls = {enable = true;}; + nil-ls = {enable = true;}; marksman = {enable = true;}; pyright = {enable = true;}; gopls = {enable = true;}; terraformls = {enable = true;}; tsserver = {enable = true;}; ansiblels = {enable = true;}; - yamlls = {enable = true;}; + yamlls = { + enable = true; + extraOptions = { + settings = '' + yaml = { + schemas = { + kubernetes = '*.yaml', + ['http://json.schemastore.org/github-workflow'] = '.github/workflows/*', + ['http://json.schemastore.org/github-action'] = '.github/action.{yml,yaml}', + ['http://json.schemastore.org/ansible-stable-2.9'] = 'roles/tasks/*.{yml,yaml}', + ['http://json.schemastore.org/kustomization'] = 'kustomization.{yml,yaml}', + ['http://json.schemastore.org/ansible-playbook'] = '*play*.{yml,yaml}', + ['http://json.schemastore.org/chart'] = 'Chart.{yml,yaml}', + ['https://json.schemastore.org/dependabot-v2'] = '.github/dependabot.{yml,yaml}', + ['https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json'] = '*docker-compose*.{yml,yaml}', + ['https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json'] = '*flow*.{yml,yaml}', + }, + } + ''; + }; + }; }; + keymaps = { silent = true; lspBuf = {