neovim related home variables should be set with the neovim module

This commit is contained in:
Zynh Ludwig 2024-05-30 15:04:10 -07:00
parent 3e60e27695
commit 84b7c70e27
2 changed files with 6 additions and 5 deletions

View file

@ -22,11 +22,6 @@
home.file = { }; home.file = { };
home.sessionVariables = {
EDITOR = "nvim";
MANPAGER = "nvim +Man!";
};
# wayland.windowManager.hyprland = { # wayland.windowManager.hyprland = {
# enable = true; # enable = true;
# package = pkgs.hyprland; # package = pkgs.hyprland;

View file

@ -21,6 +21,12 @@ in
# }; # };
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# Set nvim as manpager and default editor
home.sessionVariables = {
EDITOR = "nvim";
MANPAGER = "nvim +Man!";
};
programs.neovim = programs.neovim =
let let
nvim-treesitter = pkgs.vimPlugins.nvim-treesitter; nvim-treesitter = pkgs.vimPlugins.nvim-treesitter;