mirror of
https://github.com/cap153/nvim.git
synced 2025-12-26 19:25:01 +08:00
添加html、js、css的lsp和格式化工具
This commit is contained in:
parent
289c4daaa4
commit
4f7d039b98
3 changed files with 7 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ return {
|
|||
"rust_analyzer",
|
||||
"marksman",
|
||||
"pylsp",
|
||||
"ts_ls",
|
||||
"cssls",
|
||||
"html",
|
||||
-- "gopls",
|
||||
},
|
||||
automatic_enable = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue