summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix20
1 files changed, 14 insertions, 6 deletions
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 = {