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 = {
|
home.sessionVariables = {
|
||||||
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share";
|
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;
|
MOZ_ENABLE_WAYLAND = 1;
|
||||||
};
|
};
|
||||||
gtk = {
|
gtk = {
|
||||||
|
|
|
@ -16,7 +16,11 @@ in
|
||||||
{
|
{
|
||||||
options.mae.alacritty = {
|
options.mae.alacritty = {
|
||||||
enable = lib.mkEnableOption "Enable the alacritty terminal";
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
|
@ -18,6 +18,7 @@ in
|
||||||
enable = mkEnableOption "enable neovim";
|
enable = mkEnableOption "enable neovim";
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
|
home.sessionVariables.EDITOR = "${pkgs.neovim}/bin/nvim";
|
||||||
programs.neovim = mkIf cfg.enable {
|
programs.neovim = mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
vimdiffAlias = true;
|
vimdiffAlias = true;
|
||||||
|
@ -31,7 +32,6 @@ in
|
||||||
config = "colorscheme iceberg";
|
config = "colorscheme iceberg";
|
||||||
}
|
}
|
||||||
vim-sleuth
|
vim-sleuth
|
||||||
|
|
||||||
];
|
];
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
|
|
Loading…
Reference in a new issue