My Haskell snippet collection for Neovim - with tree-sitter and LSP

For my fellow Neovim/Haskell users:

I have decided to extract my Haskell snippets for LuaSnip into a plugin: haskell-snippets.nvim.

For those who don’t know LuaSnip, here’s an introduction.
If you have nvim-treesitter and the parser for Haskell installed, and if you use haskell-language-server, some snippets will be enhanced (e.g. qualified imports and module names).

I’ve only recently migrated to LuaSnip, and I expect to add more snippets that leverage tree-sitter and the LSP client in the future (probably also for Nix).

1 Like