From 7414f0094cf2caeafb1073f2e1159657bc576882 Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Thu, 21 May 2026 20:49:15 -0500 Subject: [PATCH] config and XAML support --- lazy-lock.json | 1 + lua/plugins/example.lua | 2 +- lua/plugins/xaml.lua | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 lua/plugins/xaml.lua diff --git a/lazy-lock.json b/lazy-lock.json index 5785497..1032841 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -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" }, diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index 17f53d6..6902584 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -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", diff --git a/lua/plugins/xaml.lua b/lua/plugins/xaml.lua new file mode 100644 index 0000000..a9d7a8b --- /dev/null +++ b/lua/plugins/xaml.lua @@ -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, + }, +}