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