add newsboat and fzf-tab
This commit is contained in:
parent
4082049095
commit
2a52904cc9
5 changed files with 68 additions and 1 deletions
|
@ -120,4 +120,14 @@
|
|||
rofi.source = ../rofi;
|
||||
waybar.source = ../waybar;
|
||||
};
|
||||
|
||||
programs.newsboat = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
urls-source "miniflux"
|
||||
miniflux-url "https://rss.cything.io/"
|
||||
miniflux-login "cy"
|
||||
miniflux-passwordfile /run/secrets/newsboat/miniflux
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
searchDownKey = "^n";
|
||||
};
|
||||
initExtra = ''
|
||||
#disable control+s to pause terminal
|
||||
# disable control+s to pause terminal
|
||||
unsetopt FLOW_CONTROL
|
||||
# manually integrate fzf cause we need to make sure zsh-vi-mode
|
||||
# won't override C-r
|
||||
|
@ -45,6 +45,18 @@
|
|||
eval "$(${pkgs.fzf}/bin/fzf --zsh)"
|
||||
}
|
||||
|
||||
# fzf-tab stuff
|
||||
# set description format to enable group support
|
||||
zstyle ':completion:*:descriptions' format '[%d]'
|
||||
# set list-colors to enable filename colorizing
|
||||
zstyle ':completion:*' list-colors ''\${(s.:.)LS_COLORS}
|
||||
# force zsh not to show completion menu, which allows fzf-tab to capture the unambiguous prefix
|
||||
zstyle ':completion:*' menu no
|
||||
# preview directory's content with eza when completing cd
|
||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath'
|
||||
# switch group using `<` and `>`
|
||||
zstyle ':fzf-tab:*' switch-group '<' '>'
|
||||
|
||||
source ${./p10k.zsh}
|
||||
'';
|
||||
plugins = [
|
||||
|
@ -58,6 +70,11 @@
|
|||
src = pkgs.zsh-powerlevel10k;
|
||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
}
|
||||
{
|
||||
name = "fzf-tab";
|
||||
src = pkgs.zsh-fzf-tab;
|
||||
file = "share/fzf-tab/fzf-tab.zsh";
|
||||
}
|
||||
];
|
||||
shellAliases = {
|
||||
"vi" = "nvim";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue