haskell-tools.nvim
1.9.0 - Minimising the impact on Neovim's startup footprint with ftplugin support
#139
mrcjkb
announced in
Announcements
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For language-specific plugins like this one, it can make sense to load them only when actually working with the respective language.
For this reason, I have added support for setting up
haskell-tools.nvim
in~/.config/nvim/ftplugin/haskell.lua
.I have made it backward compatible, so existing configurations that use
ht.setup {}
won't break.If you want to migrate, simply move your
haskell-tools.nvim
setup code to~/.config/nvim/ftplugin/haskell.lua
(the path may be different if you are using a different Neovim distribution) and replace the call tosetup
withstart_or_attach
.Both functions take exactly the same table as an argument.
The differences
setup
ftplugin/haskell.lua
.start_or_attach
Other
lsp.buf_eval_all
has been stabilised with this releaseBeta Was this translation helpful? Give feedback.
All reactions