ark/profiles/develop/kakoune/lint/nix.kak
2020-07-20 18:03:08 -06:00

13 lines
318 B
Plaintext

hook -group lint global WinSetOption filetype=nix %{
# remove '' for nix, annoying for string literals
set buffer auto_pairs ( ) { } [ ] '"' '"' ` `
set buffer lintcmd '/etc/xdg/kak/autoload/lint/nix.sh $1'
lint-enable
set buffer formatcmd "nixfmt"
hook buffer BufWritePre .* %{
format
lint
}
}