mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
zsh + foot: vim bindings + new config
This commit is contained in:
parent
31d35be90f
commit
7db50fa82b
5 changed files with 21 additions and 17 deletions
|
|
@ -8,5 +8,6 @@
|
|||
cachix
|
||||
pinentry-curses
|
||||
gnupg
|
||||
foot.terminfo
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
set hidden
|
||||
set nobackup
|
||||
set nowritebackup
|
||||
set cmdheight=2
|
||||
set cmdheight=1
|
||||
set updatetime=300
|
||||
set cursorline
|
||||
set colorcolumn=100
|
||||
|
|
|
|||
|
|
@ -63,19 +63,7 @@ in
|
|||
zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm -w -w"
|
||||
zstyle ':completion:*:complete:pass:*:*' matcher 'r:|[./_-]=** r:|=*' 'l:|=* r:|=*'
|
||||
${lib.concatStringsSep "\n" (map (opt: "setopt ${opt}") zshOpts)}
|
||||
source ${./zshrc-vimode}
|
||||
bindkey '^ ' autosuggest-accept
|
||||
autoload -Uz history-search-end
|
||||
autoload -Uz history-beginning-search-menu
|
||||
zle -N history-beginning-search-menu
|
||||
zle -N history-beginning-search-backward-end \
|
||||
history-search-end
|
||||
zle -N history-beginning-search-forward-end \
|
||||
history-search-end
|
||||
bindkey "\e[5~" history-beginning-search-backward-end
|
||||
bindkey "\e[6~" history-beginning-search-forward-end
|
||||
bindkey "^p" history-beginning-search-menu
|
||||
echo ""; akiflags -rb;
|
||||
'';
|
||||
shellAliases = {
|
||||
nixdirfmt = "fd --color=never .nix | xargs nixpkgs-fmt";
|
||||
|
|
@ -100,6 +88,14 @@ in
|
|||
name = "zsh-syntax-highlighting";
|
||||
inherit src;
|
||||
})
|
||||
(with pkgs.zsh-plugins.vim-mode; {
|
||||
name = "zsh-vim-mode";
|
||||
inherit src;
|
||||
})
|
||||
(with pkgs.zsh-plugins.evil-registers; {
|
||||
name = "evil-registers";
|
||||
inherit src;
|
||||
})
|
||||
{
|
||||
name = "z";
|
||||
file = "z.sh";
|
||||
|
|
|
|||
|
|
@ -7,13 +7,20 @@ with lib;
|
|||
enable = true;
|
||||
settings = {
|
||||
main = {
|
||||
term = "xterm-256color";
|
||||
term = "foot";
|
||||
font = "${config.kw.font.name}:size=${toString config.kw.font.size}, Twitter Color Emoji:size=8";
|
||||
font-bold = "${config.kw.font.name}:size=${toString config.kw.font.size}:style=Bold";
|
||||
font-italic = "${config.kw.font.name}:size=${toString config.kw.font.size}:style=Italic";
|
||||
font-bold-italic = "${config.kw.font.name}:size=${toString config.kw.font.size}:style=Bold Italic";
|
||||
dpi-aware = "no";
|
||||
};
|
||||
cursor = {
|
||||
style = "beam";
|
||||
};
|
||||
bell = {
|
||||
urgent = true;
|
||||
notify = true;
|
||||
};
|
||||
colors = {
|
||||
alpha = "0.9";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue