Final modification of lsp servers, switch to ansible ls
This commit is contained in:
parent
43282629a8
commit
5e9396eabb
30
init.lua
30
init.lua
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue