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.clangd.setup({})
lspconfig.tsserver.setup({}) lspconfig.tsserver.setup({})
lspconfig.jedi_language_server.setup({}) lspconfig.jedi_language_server.setup({})
lspconfig.yamlls.setup({ lspconfig.nixd.setup({})
settings = { lspconfig.nginx_language_server.setup({})
yaml = { lspconfig.docker_compose_language_service.setup({})
schemas = { lspconfig.ansiblels.setup({})
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*", -- lspconfig.yamlls.setup({
["https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/playbook"] = "**/*playbook*.yaml", -- settings = {
["https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/inventory.json"] = "**/*hosts*.yaml", -- 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({ lspconfig.emmet_language_server.setup({
filetypes = { "css", "eruby", "html", "javascript", "javascriptreact", "less", "sass", "scss", "pug", "typescriptreact" }, 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). -- 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 { lspconfig.cssls.setup {
capabilities = capabilities, capabilities = capabilities,
} }
lspconfig.nixd.setup({}) lspconfig.jsonls.setup {
capabilities = capabilities,
}
-- DAP Configuration -- DAP Configuration
local dap = require("dap") local dap = require("dap")