zsh + foot: vim bindings + new config

This commit is contained in:
kat witch 2021-08-23 02:40:09 +01:00
parent 31d35be90f
commit 7db50fa82b
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
5 changed files with 21 additions and 17 deletions

View file

@ -8,5 +8,6 @@
cachix
pinentry-curses
gnupg
foot.terminfo
];
}

View file

@ -46,7 +46,7 @@
set hidden
set nobackup
set nowritebackup
set cmdheight=2
set cmdheight=1
set updatetime=300
set cursorline
set colorcolumn=100

View file

@ -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";

View file

@ -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";
};

View file

@ -5,10 +5,10 @@
"homepage": null,
"owner": "arcnmx",
"repo": "nixexprs",
"rev": "4ebb785dde22feae297e5c51b7175f4e78f0d816",
"sha256": "1hslmzgjdfwdzcms56px8g06mk1q7k6yxiwk1g9i9kwsb62p6a9l",
"rev": "484f3b3270fec0bd6b67154400bdd5213f7c681c",
"sha256": "1r16kpy6rzl5ixly3g07lxrs92wskbrl1viys0bj25xmmfq5p6yi",
"type": "tarball",
"url": "https://github.com/arcnmx/nixexprs/archive/4ebb785dde22feae297e5c51b7175f4e78f0d816.tar.gz",
"url": "https://github.com/arcnmx/nixexprs/archive/484f3b3270fec0bd6b67154400bdd5213f7c681c.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"ci": {