Skip to content

Commit

Permalink
add guix formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Aug 22, 2024
1 parent 2bf6c3f commit 10305d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,21 @@ vim.list_extend(require("viper.lazy.specs"), {
keys = { "gq" },
after = function()
require("conform").setup {
formatters = {
guix = {
command = "guix",
args = { "style", "-f", "$FILENAME" },
stdin = false,
},
},
formatters_by_ft = {
lua = { "stylua" },
nix = { "alejandra" },
c = { "clang-format" },
typst = { "typstyle" },
rust = { "rustfmt" },
haskell = { "fourmolu" },
scheme = { "guix" },
},
}

Expand Down
1 change: 1 addition & 0 deletions packages/fish/interactive.fish
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ abbr -a -g gm "git merge"
abbr -a -g gp "git push"
abbr -a -g gl "git logs"
abbr -a -g gr "cd (git-root)"
abbr -a -g gcm "git commit -m"

set -gx fish_color_normal brwhite
set -gx fish_color_command green
Expand Down

0 comments on commit 10305d7

Please sign in to comment.