forked from pub-solar/os
9ba71d5b62
nixpkgs-fmt looks like it is going to be the standard formatter for nixpkgs, so we should follow suite.
13 lines
323 B
Plaintext
13 lines
323 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 "nixpkgs-fmt"
|
|
hook buffer BufWritePre .* %{
|
|
format
|
|
lint
|
|
}
|
|
}
|