feat(lsp): add unused xml_ls

This commit is contained in:
2026-02-11 18:54:12 +01:00
parent 1a65eaaf22
commit 532ca02ce2
2 changed files with 27 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
local lsp = require("lsp")
---@type vim.lsp.Config
return {
cmd = {
vim.env.HOME .. "/repos/xml-ls/target/release/xml-ls",
},
filetypes = { "xml" },
root_markers = { ".git" },
on_attach = lsp.on_attach,
init_options = {
logLevel = "warning",
numWorkers = 4,
},
settings = {
xml = {
diagnostics = {
enabled = true,
relatedInformation = "hint",
},
formatter = {
indentWidth = 2,
},
},
},
}