added prettier for other filetypes in conform

This commit is contained in:
adollar 2025-06-27 10:50:04 +01:00
parent ef39fefcd5
commit c35e42337a
3 changed files with 10 additions and 3 deletions

View File

@ -11,9 +11,9 @@
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
"lsp_lines.nvim": { "branch": "main", "commit": "a92c755f182b89ea91bd8a6a2227208026f27b4d" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "c4c84f4521d62de595c0d0f718a9a40c1890c8ce" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "93a9ff9b34c91c0cb0f7de8d5f7e4abce51d8903" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
"mini.nvim": { "branch": "main", "commit": "01dce72f2177de6044bcab60ebb8f8e56ade0936" },
"mini.nvim": { "branch": "main", "commit": "145476d74aaa3236db9dc6705d0fa3eb0f4f8352" },
"neo-tree.nvim": { "branch": "main", "commit": "f481de16a0eb59c985abac8985e3f2e2f75b4875" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-autopairs": { "branch": "master", "commit": "2647cce4cb64fb35c212146663384e05ae126bdf" },

View File

@ -1,6 +1,6 @@
return { -- Autoformat
'stevearc/conform.nvim',
event = { 'BufWritePre' },
event = { 'BufWritePre', 'bufNewFile' },
cmd = { 'ConformInfo' },
keys = {
{
@ -33,6 +33,13 @@ return { -- Autoformat
python = { 'ruff_fix', 'ruff_format', 'ruff_organize_imports' },
-- You can use 'stop_after_first' to run the first available formatter from the list
javascript = { 'prettierd' },
typescript = { 'prettierd' },
vue = { 'prettierd' },
html = { 'prettierd' },
css = { 'prettierd' },
json = { 'prettierd' },
jsonc = { 'prettierd' },
yaml = { 'prettierd' },
go = { 'goimports', 'golines' },
},
},