From 69e9543d31c81419ed9a1c5c51c220480289aaa0 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 11 Feb 2024 13:41:47 +0100 Subject: update --- flake.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index a74fd6e..bca4e90 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = { -- cgit v1.2.3