I’m trying to write something like:
hook global WinSetOption filetype=nix %{
set-option buffer formatcmd nixfmt
set-option buffer tabstop 2
set-option buffer softtabstop 2
echo "IT'S NIX!"
}
but this code never seems to be called. From the information I get in plugin READMEs and wiki pages, this seems unusual… is filetype
not being set for me? Anybody have any idea what could be going on?
(By the way I’m not sure if it’s that the hook isn’t being called or filetype isn’t being set… I’m not sure how to tell that yet! I’d appreciate a hint there as well!)