添加html、js、css的lsp和格式化工具

This commit is contained in:
captain 2025-10-02 21:39:08 +08:00
parent 289c4daaa4
commit 4f7d039b98
3 changed files with 7 additions and 3 deletions

View file

@ -5,10 +5,10 @@ return {
},
opts = {
formatters_by_ft = {
lua = { "stylua" },
python = { "isort", "black" },
rust = { "rust-analyzer", lsp_format = "fallback" },
toml = { "templ" },
html = { "djlint" },
},
},
config = function(_, opts)

View file

@ -11,6 +11,9 @@ return {
"rust_analyzer",
"marksman",
"pylsp",
"ts_ls",
"cssls",
"html",
-- "gopls",
},
automatic_enable = {