From 5e218dc3197f28e924a723ea3307629acc2daa63 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 30 May 2024 15:04:10 -0700 Subject: [PATCH] neovim related home variables should be set with the neovim module --- home.nix | 5 ----- home/modules/neovim.nix | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/home.nix b/home.nix index f7732e6..1979b87 100644 --- a/home.nix +++ b/home.nix @@ -22,11 +22,6 @@ home.file = { }; - home.sessionVariables = { - EDITOR = "nvim"; - MANPAGER = "nvim +Man!"; - }; - # wayland.windowManager.hyprland = { # enable = true; # package = pkgs.hyprland; diff --git a/home/modules/neovim.nix b/home/modules/neovim.nix index 5cae4eb..24726f0 100644 --- a/home/modules/neovim.nix +++ b/home/modules/neovim.nix @@ -39,6 +39,12 @@ in withPython3 = true; withRuby = true; + # Set nvim as manpager and default editor + home.sessionVariables = { + EDITOR = "nvim"; + MANPAGER = "nvim +Man!"; + }; + # TODO: nvim config nix import extraLuaConfig = '' -- bootstrap lazy.nvim, LazyVim and your plugins