2019-12-15 08:03:57 +01:00
|
|
|
hook -group lint global WinSetOption filetype=nix %{
|
|
|
|
# remove '' for nix, annoying for string literals
|
|
|
|
set buffer auto_pairs ( ) { } [ ] '"' '"' ` `
|
|
|
|
|
2020-12-10 21:10:53 +01:00
|
|
|
set buffer lintcmd '/etc/xdg/kak/autoload/lint/nix.sh'
|
2020-07-31 06:05:36 +02:00
|
|
|
set buffer formatcmd "nixpkgs-fmt"
|
2020-12-10 21:10:53 +01:00
|
|
|
|
2019-12-15 08:03:57 +01:00
|
|
|
hook buffer BufWritePre .* %{
|
|
|
|
format
|
|
|
|
lint
|
|
|
|
}
|
|
|
|
}
|