Final modification of lsp servers, switch to ansible ls

This commit is contained in:
Curt Spark 2024-07-18 06:54:13 +01:00
parent 43282629a8
commit 5e9396eabb
1 changed files with 18 additions and 12 deletions

View File

@ -46,17 +46,21 @@ lspconfig.bashls.setup({})
lspconfig.clangd.setup({})
lspconfig.tsserver.setup({})
lspconfig.jedi_language_server.setup({})
lspconfig.yamlls.setup({
settings = {
yaml = {
schemas = {
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
["https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/playbook"] = "**/*playbook*.yaml",
["https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/inventory.json"] = "**/*hosts*.yaml",
},
},
}
})
lspconfig.nixd.setup({})
lspconfig.nginx_language_server.setup({})
lspconfig.docker_compose_language_service.setup({})
lspconfig.ansiblels.setup({})
-- lspconfig.yamlls.setup({
-- settings = {
-- yaml = {
-- schemas = {
-- ["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
-- ["https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/playbook"] = "**/*playbook*.yaml",
-- ["https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/inventory.json"] = "**/*hosts*.yaml",
-- },
-- },
-- }
-- })
lspconfig.emmet_language_server.setup({
filetypes = { "css", "eruby", "html", "javascript", "javascriptreact", "less", "sass", "scss", "pug", "typescriptreact" },
-- Read more about this options in the [vscode docs](https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration).
@ -88,7 +92,9 @@ capabilities.textDocument.completion.completionItem.snippetSupport = true
lspconfig.cssls.setup {
capabilities = capabilities,
}
lspconfig.nixd.setup({})
lspconfig.jsonls.setup {
capabilities = capabilities,
}
-- DAP Configuration
local dap = require("dap")