diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -16,12 +16,14 @@ module = { config = { extraPackages = [ - pkgs.black pkgs.alejandra - pkgs.shfmt + pkgs.black pkgs.cargo - pkgs.rustfmt + pkgs.cmake-format pkgs.go + pkgs.rustfmt + pkgs.shfmt + pkgs.yamlfmt ]; options = {mouse = "";}; colorschemes.kanagawa = { @@ -29,6 +31,7 @@ transparent = true; }; plugins = { + ledger.enable = true; lsp = { enable = true; servers = { @@ -38,20 +41,25 @@ gopls.enable = true; }; }; - rust-tools.enable = true; + rustaceanvim.enable = true; conform-nvim = { enable = true; formatAfterSave.lspFallback = false; formattersByFt = { - python = ["black"]; + cmake = ["cmake_format"]; + go = ["gofmt"]; nix = ["alejandra"]; + python = ["black"]; rust = ["rustfmt"]; - go = ["gofmt"]; + yaml = ["yamlfmt"]; _ = ["shfmt"]; }; formatters.shfmt = { prepend_args = ["-i" "4" "-s"]; }; + formatters.rustfmt = { + prepend_args = ["--edition" "2021"]; + }; }; luasnip.enable = true; nvim-cmp = { |