Basic Configuration for writing Haskell code with LazyVim
-
Setup the haskell platform following instruction on the Official website.
-
Install the language plugin for Haskell in lazyExtra.
-
Resolve the conflict of two linting tools.
-
You might try to install
hlintin Mason, because of the errorENOENT(which comes from thenvim-lintpanic, and means "Error NO ENTry").However, you shouldn't do that!
Because the standalone
hlintis not designed to read half-finished code. It crashes, giving you that annoying exit code error. -
Instead, add the following configuration file to tell LazyVim stop looking for
hlint.(This file should be placed in this path:
~/.config/nvim/lua/plugins/init.lua)
-
Gio Trash Permission Errors When Deleting Files on an NTFS-formatted Drive
To resolve the gio trash permission errors when deleting files on an NTFS-formatted drive (common with shared Windows partitions), follow these steps:
-
Create a plugin override file:
-
Disable the trash feature in Snacks:
Add the following configuration to force permanent deletion instead of using the system trash: