From 1c17da074e02cc8ebe36f11ae866ea82bdbd8f5e Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sun, 24 Mar 2024 16:32:46 +0100 Subject: [PATCH] use programs.nixvim.defaultEditor --- modules/tui/neovim.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/tui/neovim.nix b/modules/tui/neovim.nix index 6dc317a..88d9806 100644 --- a/modules/tui/neovim.nix +++ b/modules/tui/neovim.nix @@ -13,9 +13,6 @@ in { config = mkIf cfg.enable { nixpkgs.overlays = [ inputs.neovim-nightly-overlay.overlay ]; - environment.sessionVariables = { - EDITOR = "${pkgs.neovim-nightly}/bin/nvim"; - }; home-manager.users.${username} = { imports = [ inputs.nixvim.homeManagerModules.nixvim ]; @@ -24,6 +21,8 @@ in { enable = true; package = pkgs.neovim-nightly; enableMan = true; + defaultEditor = true; + colorscheme = "catppuccin"; colorschemes.catppuccin = { enable = true;