[ADD] xml server configs
This commit is contained in:
@@ -20,6 +20,7 @@ require("lazy").setup({
|
|||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
{ import = "plugins.langs.python" },
|
{ import = "plugins.langs.python" },
|
||||||
{ import = "plugins.langs.go" },
|
{ import = "plugins.langs.go" },
|
||||||
|
{ import = "plugins.langs.xml_json_html" },
|
||||||
},
|
},
|
||||||
defaults = {
|
defaults = {
|
||||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
return {
|
return {
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
-- python = { "ruff" },
|
python = { "black" },
|
||||||
python = { "black" },
|
javascript = { "biome" },
|
||||||
javascript = { "biome" },
|
go = { "goimports", "gofumpt" },
|
||||||
go = {'goimports', 'gofumpt'}
|
xml = { "lemminx" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"mason.nvim",
|
"mason.nvim",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
22
lua/plugins/langs/xml_json_html/nvim-lspconfig.lua
Normal file
22
lua/plugins/langs/xml_json_html/nvim-lspconfig.lua
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
return {
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = {
|
||||||
|
servers = {
|
||||||
|
lemminx = {
|
||||||
|
init_options = {
|
||||||
|
settings = {
|
||||||
|
xml = {
|
||||||
|
format = {
|
||||||
|
enabled = true,
|
||||||
|
splitAttributes = false,
|
||||||
|
},
|
||||||
|
validation = {
|
||||||
|
noGrammar = "ignore", -- This is correct
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user