diff options
| author | pml68 <contact@pml68.me> | 2024-11-30 01:18:00 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.me> | 2024-11-30 01:18:00 +0100 |
| commit | 0ed3daacef4deaf4aac0b544a5e0ade3810ae40a (patch) | |
| tree | 7e658de150d3e46d8dc22491be9d5526ee143768 /lua/pml68/plugins/guard.lua | |
| parent | feat: split plugins.lua into manageable "chunks" (diff) | |
| download | nvim-0ed3daacef4deaf4aac0b544a5e0ade3810ae40a.tar.gz | |
feat: add Go support
Diffstat (limited to '')
| -rw-r--r-- | lua/pml68/plugins/guard.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/pml68/plugins/guard.lua b/lua/pml68/plugins/guard.lua index 9f033b3..86cdfd2 100644 --- a/lua/pml68/plugins/guard.lua +++ b/lua/pml68/plugins/guard.lua @@ -12,6 +12,11 @@ return { cmd = "jq", stdin = true }) + 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 |
