diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-12-14 19:33:57 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-12-14 19:33:57 +0530 |
| commit | 4370f3c2fe973db6c65edf3792e1c261e62751fd (patch) | |
| tree | b977a29aafc507496fafe3df3d63a80b464cc613 /modules/tools | |
| parent | f0a384027b7765597ab7a3410a65e25673aa4835 (diff) | |
| download | home-manager-config-4370f3c2fe973db6c65edf3792e1c261e62751fd.tar.gz home-manager-config-4370f3c2fe973db6c65edf3792e1c261e62751fd.zip | |
Using nixvim flake
Diffstat (limited to 'modules/tools')
| -rw-r--r-- | modules/tools/nixvim/default.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/tools/nixvim/default.nix b/modules/tools/nixvim/default.nix index bca3451..56c55e6 100644 --- a/modules/tools/nixvim/default.nix +++ b/modules/tools/nixvim/default.nix @@ -1,12 +1,7 @@ -{ pkgs, config, lib, ... }: +{ config, lib, ... }: -let - nixvim = import (builtins.fetchGit { - url = "https://github.com/nix-community/nixvim"; - }); -in { +{ imports = [ - nixvim.homeModules.nixvim ./colorscheme.nix ./keymaps.nix ./plugins @@ -20,6 +15,7 @@ in { { programs.nixvim = { enable = true; + defaultEditor = true; opts = { number = true; relativenumber = true; @@ -69,5 +65,9 @@ in { combinePlugins.enable = true; }; }; + + home.sessionVariables = { + EDITOR = "nvim"; + }; }; } |
