diff --git a/config/nvim/lua/plugins/formatter.lua b/config/nvim/lua/plugins/formatter.lua index 3c0279d6..3de8cbea 100644 --- a/config/nvim/lua/plugins/formatter.lua +++ b/config/nvim/lua/plugins/formatter.lua @@ -111,7 +111,7 @@ return { -- this will run gofmt too 'goimports', }, - nix = { 'nixpkgs_fmt', 'statix' }, + nix = { 'nixfmt' }, toml = { 'taplo' }, }, format_on_save = function(bufnr) diff --git a/nix/modules/shared/vim.nix b/nix/modules/shared/vim.nix index 589bca75..c122aa5a 100644 --- a/nix/modules/shared/vim.nix +++ b/nix/modules/shared/vim.nix @@ -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