mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
增加xml
This commit is contained in:
parent
0407055f5f
commit
703e81f811
1 changed files with 35 additions and 0 deletions
35
lua/lazyvim/plugins/extras/lang/xml.lua
Normal file
35
lua/lazyvim/plugins/extras/lang/xml.lua
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
return {
|
||||||
|
recommended = function()
|
||||||
|
return LazyVim.extras.wants({
|
||||||
|
ft = {
|
||||||
|
"xml",
|
||||||
|
"xhtml",
|
||||||
|
"svg",
|
||||||
|
"wsdl",
|
||||||
|
"xsl",
|
||||||
|
"xslt",
|
||||||
|
"xquery",
|
||||||
|
"xjb",
|
||||||
|
"xsd",
|
||||||
|
"xlf",
|
||||||
|
"xul",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = { ensure_installed = { "xml", "html" } },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mason-org/mason.nvim",
|
||||||
|
opts = { ensure_installed = { "lemminx" } },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = function(_, opts)
|
||||||
|
vim.tbl_deep_extend("force", opts.servers, {
|
||||||
|
lemminx = {},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue