This commit is contained in:
Miguel Palhas
2024-10-04 14:51:02 +01:00
parent 62a05a4648
commit 482fdf5c48
9 changed files with 312 additions and 16 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{ lib, config, ... }: {
imports = [ ./basePrograms.nix ./neovim.nix ./zsh.nix ];
imports = [ ./basePrograms.nix ./zsh.nix ./neovim ];
home = {
homeDirectory = lib.mkDefault "/home/${config.home.username}";
+8 -2
View File
@@ -54,8 +54,14 @@
};
dwindle = { preserve_split = "yes"; };
master = { orientation = "center"; };
dwindle = {
preserve_split = "yes";
no_gaps_when_only = true;
};
master = {
orientation = "center";
no_gaps_when_only = true;
};
"exec-once" = [
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
+9 -1
View File
@@ -14,11 +14,19 @@
bold_italic_font = "VictorMono Nerd Font Mono Bold Oblique";
disable_ligatures = "cursor";
# tab-style
tab_bar_edge = "bottom";
tab_bar_style = "powerline";
tab_powerline_style = "slanted";
tab_title_template =
"{title}{' :{}'.format(num_windows) if num_windows > 1 else ''}";
# keys
kitty_mod = "alt";
};
keybindings = {
"kitty_mod+t" = "new_tab_with_cmd";
"kitty_mod+t" = "new_tab_with_cwd";
"kitty_mod+enter" = "new_window_with_cwd";
"kitty_mod+r" = "set_tab_title";
-1
View File
@@ -1 +0,0 @@
{ inputs, ... }: { programs.neovim.enable = true; }
@@ -0,0 +1,13 @@
{ inputs, pkgs, ... }: {
home.sessionVariables = { EDITOR = "nvim"; };
programs.neovim = {
enable = true;
package = inputs.neovim-nightly-overlay.packages.${pkgs.system}.default;
vimAlias = true;
vimdiffAlias = true;
withNodeJs = true;
};
programs.nvchad.enable = true;
}
+13 -1
View File
@@ -1,4 +1,4 @@
{ inputs, config, ... }: {
{ inputs, config, pkgs, ... }: {
programs.zsh = {
enable = true;
enableCompletion = true;
@@ -17,6 +17,11 @@
ls = "eza";
cat = "bat";
ps = "procs";
# cd
".." = "cd ..";
"..2" = "cd ../..";
"..3" = "cd ../../..";
};
history = {
@@ -31,7 +36,11 @@
};
initExtra = ''
# mise
eval "$(mise activate zsh)"
# asdf
${pkgs.asdf-vm}/share/asdf-vm/asdf.sh
'';
};
@@ -44,4 +53,7 @@
enable = true;
settings = { add_newline = true; };
};
home.sessionPath =
[ "./.git/safe/../../node_modules/.bin" "./.git/safe/../../bin" ];
}