🔧 More formatters for nvim
This commit is contained in:
parent
bad826cccf
commit
3074347e33
2 changed files with 5 additions and 0 deletions
|
|
@ -8,6 +8,9 @@ require("conform").setup({
|
||||||
html = { "prettierd", "prettier", stop_after_first = true },
|
html = { "prettierd", "prettier", stop_after_first = true },
|
||||||
sql = { "sql_formatter" },
|
sql = { "sql_formatter" },
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
|
json = { "jq" },
|
||||||
|
toml = { "taplo" },
|
||||||
|
yaml = { "yq" },
|
||||||
},
|
},
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
-- These options will be passed to conform.format()
|
-- These options will be passed to conform.format()
|
||||||
|
|
|
||||||
|
|
@ -566,3 +566,5 @@ Install sql-formatter
|
||||||
paru sql-formatter
|
paru sql-formatter
|
||||||
Install black (python formatter)
|
Install black (python formatter)
|
||||||
doas pacman -S python-black
|
doas pacman -S python-black
|
||||||
|
Install taplo (TOML formatter)
|
||||||
|
doas pacman -S taplo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue