pub-solar-os/profiles/develop/kakoune/lint/nix.kak
Timothy DeHerrera 9ba71d5b62
replace nixfmt with nixpkgs-fmt
nixpkgs-fmt looks like it is going to be the standard formatter for
nixpkgs, so we should follow suite.
2020-07-30 22:07:59 -06:00

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
}
}