develop#kakoune: wrap binary to load plugins

This commit is contained in:
Timothy DeHerrera 2019-12-15 22:30:25 -07:00
parent d0aa623d6f
commit 9cd09ff0fe
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
3 changed files with 23 additions and 2 deletions

View file

@ -7,7 +7,7 @@
];
environment.shellAliases = {
v = "XDG_CONFIG_HOME=/etc/xdg $EDITOR";
v = "$EDITOR";
};
environment.sessionVariables = {

View file

@ -3,7 +3,7 @@
environment.systemPackages = with pkgs; [
cquery
kak-lsp
kakoune
kakoune-config
kakoune-unwrapped
nixpkgs-fmt
python3Packages.python-language-server
@ -29,6 +29,10 @@
];
};
kakoune-config = super.writeShellScriptBin "kak" ''
XDG_CONFIG_HOME=/etc/xdg ${self.kakoune}/bin/kak "$@"
'';
kakoune-unwrapped = super.kakoune-unwrapped.overrideAttrs (
o: rec {
version = "2019.12.10";

View file

@ -0,0 +1,17 @@
##
## git.kak by lenormf
##
# http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
# Faces that highlight text that overflows the following limits:
# - title: 50 characters
# - body: 72 characters
set-face global GitOverflowTitle yellow
set-face global GitOverflowBody yellow
hook -group git-commit-highlight global WinSetOption filetype=git-(commit|rebase) %{
add-highlighter window/git-commit-highlight/ regex "^\h*[^#\s][^\n]{71}([^\n]+)" 1:GitOverflowBody
add-highlighter window/git-commit-highlight/ regex "\A[\s\n]*[^#\s][^\n]{49}([^\n]+)" 1:GitOverflowTitle
}