config(nvim): improve toml format

main
sudo pacman -Syu 2024-05-15 15:03:34 +07:00
parent 5b1d47e327
commit cf087adb9b
1 changed files with 6 additions and 0 deletions

View File

@ -405,7 +405,9 @@ require("lazy").setup({
"javascript",
"json",
"lua",
"make",
"markdown",
"proto",
"python",
"sh",
"toml",
@ -423,6 +425,7 @@ require("lazy").setup({
json = { "deno_fmt" },
lua = { "stylua" },
markdown = { "deno_fmt" },
proto = { "buf" },
python = { "ruff_format" },
sh = { "shfmt" },
toml = { "taplo" },
@ -436,6 +439,9 @@ require("lazy").setup({
shfmt = {
prepend_args = { "-s", "-i", "4" },
},
taplo = {
args = { "fmt", "-o", "indent_string= ", "-o", "allowed_blank_lines=1", "-" },
},
},
})