- Add `pw` wrapper that uses `sk` to make it easier to get passwords
- Enable spellcheck in markdown files in kakoune
This commit is contained in:
Riley Apeldoorn 2022-09-13 13:35:36 +02:00
parent ffd48fa9ea
commit b8257363d3
2 changed files with 22 additions and 0 deletions

View file

@ -196,6 +196,16 @@ in pkgs.writeTextFile (rec {
face global InlayDiagnosticHint rgb:4d965a+f
face global InlayDiagnosticInfo rgb:4d965a+f
hook global WinSetOption filetype=markdown %{
hook window -group spellck BufReload .* spell
hook window -group spellck NormalIdle .* spell
hook window -group spellck InsertIdle .* spell
hook -once -always window WinSetOption filetype=.* %{
remove-hooks window spellck
}
}
${keybinds}
${typescript-config}

12
scripts/bitwarden.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, ... }: with pkgs; {
# Get a password entry from the list
pw = (writeShellApplication {
name = "pw";
runtimeInputs = [ rbw skim ];
text = ''
x=$(rbw list | sk) && rbw "$@" "$x"
'';
});
}