diff options
| author | pml68 <contact@pml68.dev> | 2025-07-22 16:12:16 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-07-22 16:12:16 +0200 |
| commit | cbba08e24f2951a87248e502591447a0d33d0f92 (patch) | |
| tree | 388804594a86a72575a6e1aaeb85085282ccd4ac /lua/pml68/plugins | |
| parent | feat(crates.nvim): enable all LSP options (diff) | |
| download | nvim-cbba08e24f2951a87248e502591447a0d33d0f92.tar.gz | |
feat(guard.nvim): enable `taplo` formatter for TOML
Diffstat (limited to 'lua/pml68/plugins')
| -rw-r--r-- | lua/pml68/plugins/guard.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/pml68/plugins/guard.lua b/lua/pml68/plugins/guard.lua index bfae097..7f609de 100644 --- a/lua/pml68/plugins/guard.lua +++ b/lua/pml68/plugins/guard.lua @@ -3,20 +3,20 @@ return { dependencies = { "nvimdev/guard-collection" }, - ft = { "c", "cpp", "h", "json", "go", "lua" }, + ft = { "c", "cpp", "h", "toml", "json", "go", "lua" }, config = function() local ft = require("guard.filetype") ft("c,cpp,h"):fmt("clang-format") - ft("json"):fmt({ - cmd = "jq", - stdin = true - }) + ft("toml"):fmt("taplo") + ft("json"):fmt("jq") + ft("go"):fmt({ cmd = "golines", args = { "--max-len=80", "--base-formatter=gofumpt" }, stdin = true, }) + vim.g.guard_config = { fmt_on_save = true, lsp_as_default_formatter = true, |
