develop#kakoune: wrap binary to load plugins
This commit is contained in:
parent
d0aa623d6f
commit
9cd09ff0fe
|
@ -7,7 +7,7 @@
|
|||
];
|
||||
|
||||
environment.shellAliases = {
|
||||
v = "XDG_CONFIG_HOME=/etc/xdg $EDITOR";
|
||||
v = "$EDITOR";
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
|
|
|
@ -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";
|
||||
|
|
17
profiles/develop/kakoune/plugins/git.kak
Normal file
17
profiles/develop/kakoune/plugins/git.kak
Normal 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
|
||||
}
|
Loading…
Reference in a new issue