Skip to content

Commit

Permalink
nix: using the official nixpkgs formatter see NixOS/rfcs#166
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedelgabri committed Jul 27, 2024
1 parent 0235f87 commit 6dfead2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/nvim/lua/plugins/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ return {
-- this will run gofmt too
'goimports',
},
nix = { 'nixpkgs_fmt', 'statix' },
nix = { 'nixfmt' },
toml = { 'taplo' },
},
format_on_save = function(bufnr)
Expand Down
3 changes: 2 additions & 1 deletion nix/modules/shared/vim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ in
# editorconfig-checker # do I use it?
hadolint # Docker linter
dotenv-linter
nixpkgs-fmt
nixfmt-unstable
# nixfmt
vim-vint
shellcheck
shfmt # Doesn't work with zsh, only sh & bash
Expand Down

0 comments on commit 6dfead2

Please sign in to comment.