format on save with vim - Dhall

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Mason Mackaman

is there tooling for this?

tristanC

Have you tried https://github.com/vmchale/dhall-vim ? let g:dhall_format=1 seems to do the trick: https://docs.dhall-lang.org/howtos/Text-Editor-Configuration.html#configuration

Syntax highlighting for Dhall. Contribute to vmchale/dhall-vim development by creating an account on GitHub.
Mason Mackaman

had to tweak it a bit to get it working on windows, but all good now, thanks!

Mason Mackaman

I'm curious though, where does dhall-lsp-server come from?

Mason Mackaman

I don't recall ever installing that

Sridhar Ratnakumar

Perhaps it is installed along with dhall. See https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server

Maintainable configuration files. Contribute to dhall-lang/dhall-haskell development by creating an account on GitHub.
Mason Mackaman

hmm, installing dhall was just downloading a dhall.exe file. I guess maybe the plugin can hook into that some how. I don't know much about LSPs.