config and XAML support

This commit is contained in:
2026-05-21 20:49:15 -05:00
parent 2b142f1e3a
commit 7414f0094c
3 changed files with 42 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@
"mason-lspconfig.nvim": { "branch": "main", "commit": "7b01e2974a47d489bb92f47a41e4c0088ea8f86e" },
"mason.nvim": { "branch": "main", "commit": "cbf8d285e1462dd24acf3507817be2bbcb035919" },
"mini.ai": { "branch": "main", "commit": "4ce4c35e411ea329a15d4b15e9c89c2a3089e437" },
"mini.hipatterns": { "branch": "main", "commit": "e25cf080aae092a651a92fa5e477f64a61adbebf" },
"mini.icons": { "branch": "main", "commit": "520995f1d75da0e4cc901ee95080b1ff2bc46b94" },
"mini.pairs": { "branch": "main", "commit": "30cf2f01c4aaa2033db67376b9924fa2442c05d6" },
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
+1 -1
View File
@@ -184,7 +184,7 @@ return {
-- add any tools you want to have installed below
{
"williamboman/mason.nvim",
"mason-org/mason.nvim",
opts = {
ensure_installed = {
"stylua",
+40
View File
@@ -0,0 +1,40 @@
return {
{
"nvim-treesitter/nvim-treesitter",
init = function()
vim.filetype.add({
extension = {
xaml = "xaml",
},
})
vim.treesitter.language.register("xml", { "xaml" })
end,
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
if type(opts.ensure_installed) == "table" and not vim.tbl_contains(opts.ensure_installed, "xml") then
table.insert(opts.ensure_installed, "xml")
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
lemminx = {
filetypes = { "xml", "xsd", "xsl", "xslt", "svg", "xaml" },
},
},
},
},
{
"mason-org/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
if not vim.tbl_contains(opts.ensure_installed, "lemminx") then
table.insert(opts.ensure_installed, "lemminx")
end
end,
},
}