diff options
-rw-r--r-- | .config/nixpkgs/config.nix | 4 | ||||
-rw-r--r-- | .vimrc | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/.config/nixpkgs/config.nix b/.config/nixpkgs/config.nix index 96e82fc..aad40de 100644 --- a/.config/nixpkgs/config.nix +++ b/.config/nixpkgs/config.nix @@ -379,7 +379,7 @@ in Python = pkgs.buildEnv { name = "python"; paths = [ - (python38.withPackages (ps: with ps; [ bandit black mypy pyflakes pylint ])) + (python39.withPackages (ps: with ps; [ bandit black mypy pylint pyflakes flake8 ])) ]; }; @@ -490,7 +490,7 @@ in paths = [ (callPackage ./packages/ruamel.yaml.cmd/default.nix {}) (callPackage ./packages/yaml2nix/default.nix {}) - python38Packages.yamllint + python39Packages.yamllint ]; }; }; @@ -313,6 +313,7 @@ augroup AutoCommands autocmd FileType php autocmd! BufWritePost <buffer> exe 'Notify(''phpcbf ' . expand('%') . ' 2>&1'')' | :e autocmd FileType css autocmd! BufWritePost <buffer> exe 'Notify(''prettier --write --parser css ' . expand('%') . ' 2>&1'')' | :e autocmd FileType html autocmd! BufWritePost <buffer> exe 'Notify(''prettier --write --parser html ' . expand('%') . ' 2>&1'')' | :e + autocmd FileType python autocmd! BufWritePost <buffer> exe 'Notify(''black ' . expand('%') . ' 2>&1 && pylint ' . expand('%') . ' 2>&1'')' | :e autocmd FileType ruby autocmd! BufWritePost <buffer> exe 'Notify(''rufo ' . expand('%') . ' 2>&1 && rubocop ' . expand('%') . ' 2>&1'')' | :e autocmd FileType rust autocmd! BufWritePost <buffer> exe 'Notify(''rustfmt ' . expand('%') . ' 2>&1 && printf "rustfmt OK: ' . expand('%') . '"'')' | :e autocmd FileType json autocmd! BufWritePost <buffer> exe 'Notify(''jsonlint -i ' . expand('%') . ' 2>&1 && printf "JSON OK: ' . expand('%') . '"'')' | :e |