neovimhaskell / nvim-hs

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

Builtin Plugin to help compiling/debugging "scripts" written with nvim-hs #20

Closed saep closed 9 years ago

saep commented 9 years ago

Although the dyre library helps with (somewhat) dynamic recompilation, it is still a bit annoying to use. Compile errors are silently dumped into ~/.cache/nvim/errors.log and you do not really notice if something went wrong there. Say you are developing a function for a plugin, the function may fail because you did something wrong logically or because it did not compile. It would be a tremendous improvement to be notified about the latter situation immediately. Also, it is still very inconvenient to restart neovim all the time if you change the configuration. To remedy these problems, we should extend nvim-hs to supply some functions and commands out of the box. This issue is a place to collect ideas and document the stage of its development.

The first steps are:

Then, we must think about how this is integrated within neovim. I think it is sufficient to provide two commands for the two steps above: :RecompileNvim-hs and :RestartNvim-hs (feel free to suggest better names). If we define them on our side, we don't even have to explicitly call vim_subscribe and can pass it directly to the EventHandler.

saep commented 9 years ago

Note that the basis for this plugin is already there: ConfigHelper

What still has to be done is (at least) the following:

saep commented 9 years ago

The second point of the list is almost implemented (although untested) in PR #22 if anyone is interested in closing this issue.

saep commented 9 years ago

Mostly implemented with 64d05b97a264b7ba0becb083337aa30a78190e6e. Closing now as there will only be missing features which may not be too relevant.