pub-solar-os/profiles/develop/kakoune/lint/nix.kak
2020-12-10 13:10:53 -07:00

13 lines
307 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'
set buffer formatcmd "nixpkgs-fmt"
hook buffer BufWritePre .* %{
format
lint
}
}