cleanup and fixing edit command
This commit is contained in:
parent
64dbe8d5df
commit
8467b9b336
19
home.nix
19
home.nix
|
@ -63,11 +63,6 @@ with import ./modules/neovim-config.nix { inherit pkgs lib fromGitHub; };
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
# system configuration
|
|
||||||
VISUAL = "neovide --nofork";
|
|
||||||
NEOVIDE_MULTIGRID = 1;
|
|
||||||
ZELLIJ_AUTO_EXIT = "true";
|
|
||||||
|
|
||||||
# fish config
|
# fish config
|
||||||
fish_greeting = "✨ heya ${config.home.username}, welcome to $(hostnamectl --pretty) ~";
|
fish_greeting = "✨ heya ${config.home.username}, welcome to $(hostnamectl --pretty) ~";
|
||||||
};
|
};
|
||||||
|
@ -140,12 +135,10 @@ with import ./modules/neovim-config.nix { inherit pkgs lib fromGitHub; };
|
||||||
};
|
};
|
||||||
"org/gnome/mutter".center-new-windows = true;
|
"org/gnome/mutter".center-new-windows = true;
|
||||||
"org/gnome/desktop/sound".allow-volume-above-100-percent = true;
|
"org/gnome/desktop/sound".allow-volume-above-100-percent = true;
|
||||||
"org/gnome/settings-daemon/plugins/media-keys".custom-keybindings
|
"org/gnome/settings-daemon/plugins/media-keys".custom-keybindings = [
|
||||||
= [
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
||||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
|
||||||
];
|
];
|
||||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0"
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
||||||
= {
|
|
||||||
binding = "<Super>t";
|
binding = "<Super>t";
|
||||||
command = "wezterm";
|
command = "wezterm";
|
||||||
name = "Wezterm";
|
name = "Wezterm";
|
||||||
|
@ -159,9 +152,7 @@ with import ./modules/neovim-config.nix { inherit pkgs lib fromGitHub; };
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
programs.zellij = {
|
programs.zellij = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# enableFishIntegration = true;
|
|
||||||
settings = {
|
settings = {
|
||||||
default_layout = "compact";
|
|
||||||
ui = {
|
ui = {
|
||||||
pane_frames = {
|
pane_frames = {
|
||||||
hide_session_name = true;
|
hide_session_name = true;
|
||||||
|
@ -173,6 +164,7 @@ with import ./modules/neovim-config.nix { inherit pkgs lib fromGitHub; };
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
options = [ "--cmd cd" ];
|
||||||
};
|
};
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -288,7 +280,7 @@ end
|
||||||
'';
|
'';
|
||||||
edit = ''
|
edit = ''
|
||||||
if test $XDG_SESSION_TYPE != tty
|
if test $XDG_SESSION_TYPE != tty
|
||||||
neovide $argv #should be fixed later to use VISUAL somehow, reference funced
|
$VISUAL $argv #should be fixed later to use VISUAL somehow, reference funced
|
||||||
else
|
else
|
||||||
$EDITOR $argv
|
$EDITOR $argv
|
||||||
end
|
end
|
||||||
|
@ -315,6 +307,7 @@ fish_add_path ~/.local/bin/scripts
|
||||||
fish_add_path ~/.local/share/cargo/bin
|
fish_add_path ~/.local/share/cargo/bin
|
||||||
fish_add_path /var/lib/flatpak/exports/bin
|
fish_add_path /var/lib/flatpak/exports/bin
|
||||||
fish_vi_key_bindings
|
fish_vi_key_bindings
|
||||||
|
set -gx VISUAL neovide --nofork --multigrid
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
programs.password-store = {
|
programs.password-store = {
|
||||||
|
|
Loading…
Reference in a new issue