diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,10 @@ { inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - nixvim.url = "github:nix-community/nixvim"; + nixvim = { + url = "github:nix-community/nixvim"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = @@ -22,14 +25,16 @@ mouse = ""; expandtab = true; tabstop = 4; + shiftwidth = 4; }; + diagnostic.settings.virtual_text = true; colorschemes.kanagawa = { enable = true; settings.transparent = true; }; extraPackages = [ - pkgs.nixfmt-rfc-style pkgs.shfmt + pkgs.nixfmt-rfc-style ]; filetype.pattern.".*".__raw = '' function(path, bufnr) @@ -51,10 +56,7 @@ cmake.enable = true; gopls.enable = true; ruff.enable = true; - nixd = { - enable = true; - extraOptions.formatting.command = "nixfmt"; - }; + nixd.enable = true; bashls.enable = true; }; }; |
