feat: add neovim webdev support

This commit is contained in:
2026-07-08 15:04:16 +02:00
parent 187adea90e
commit d40d3c9ef4
3 changed files with 27 additions and 0 deletions
@@ -14,6 +14,8 @@ require("lz.n").load({
},
},
after = function()
local prettier = { "prettierd", "prettier", stop_after_first = true }
require("conform").setup({
notify_on_error = true,
format_on_save = function(bufnr)
@@ -28,6 +30,17 @@ require("lz.n").load({
end
end,
formatters_by_ft = {
javascript = prettier,
javascriptreact = prettier,
typescript = prettier,
typescriptreact = prettier,
json = prettier,
jsonc = prettier,
css = prettier,
scss = prettier,
less = prettier,
html = prettier,
markdown = prettier,
lua = { "stylua" },
python = { "ruff_fix", "ruff_format", "ruff_organize_imports" },
toml = { "taplo" },