ark/profiles/develop/kakoune/lint/nix.kak

13 lines
323 B
Plaintext
Raw Normal View History

2019-12-15 10:03:57 +03:00
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'
2019-12-15 10:03:57 +03:00
lint-enable
set buffer formatcmd "nixpkgs-fmt"
2019-12-15 10:03:57 +03:00
hook buffer BufWritePre .* %{
format
lint
}
}