neovimhaskell / nvim-hs

Neovim API for Haskell plugins as well as the plugin provider
Other
267 stars 18 forks source link

Automatic reload of changed scripts at runtime #72

Closed saep closed 5 years ago

saep commented 5 years ago

If PR #71 is merged, Dyre is no longer used to automatically recompile and restart the nvim-hs instance.

A generic function to recompile and restart nvim-hs instances paired with some autocommands is probably the way to go. The autocommands should probably be added to the default stack template and also documented in the general :help page.

saep commented 5 years ago

The function nvimhs#compileAndRestart(name) in nvim-hs.vim solves this and is documented in :help.