Closed lrworth closed 4 years ago
Some Haskell files start with a shebang:
#!/usr/bin/env stack
and vim can detect this line and set filetype=haskell even when the file doesn't have a .hs extension.
For example:
au BufRead,BufNewFile * if search('^#!/usr/bin/env stack$', 'nw') | setlocal filetype=haskell | endif
This overrides the detection of the .hs extension though? I'm cool with including this but it should support both cases.
Some Haskell files start with a shebang:
and vim can detect this line and set filetype=haskell even when the file doesn't have a .hs extension.
For example: