Move default editor to neovim config
This commit is contained in:
parent
bb817e9dec
commit
93c596d4d1
3 changed files with 6 additions and 3 deletions
|
@ -12,7 +12,6 @@
|
|||
|
||||
home.sessionVariables = {
|
||||
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share";
|
||||
EDITOR = "${pkgs.neovim}/bin/nvim";
|
||||
MOZ_ENABLE_WAYLAND = 1;
|
||||
};
|
||||
gtk = {
|
||||
|
|
|
@ -16,7 +16,11 @@ in
|
|||
{
|
||||
options.mae.alacritty = {
|
||||
enable = lib.mkEnableOption "Enable the alacritty terminal";
|
||||
libglWrapper = lib.mkEnableOption "Wrap alacritty in libgl to make it work on non nixos systems";
|
||||
libglWrapper = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
description = "Wrap alacritty in libgl to make it work on non nixos systems";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
fonts.fontconfig.enable = true;
|
||||
|
|
|
@ -18,6 +18,7 @@ in
|
|||
enable = mkEnableOption "enable neovim";
|
||||
};
|
||||
config = {
|
||||
home.sessionVariables.EDITOR = "${pkgs.neovim}/bin/nvim";
|
||||
programs.neovim = mkIf cfg.enable {
|
||||
enable = true;
|
||||
vimdiffAlias = true;
|
||||
|
@ -31,7 +32,6 @@ in
|
|||
config = "colorscheme iceberg";
|
||||
}
|
||||
vim-sleuth
|
||||
|
||||
];
|
||||
extraPackages = with pkgs; [
|
||||
nodePackages.prettier
|
||||
|
|
Loading…
Reference in a new issue