Closed Devalyus closed 8 months ago
I can reproduce this and it seems to be caused by the Treesitter highlighting. I would recommend that you open an issue with the nvim-treesitter project: https://github.com/nvim-treesitter/nvim-treesitter
You can work-around that by disabling it for haskell with this change:
diff --git a/init.lua b/init.lua
index 013fcc2..db5a0c7 100644
--- a/init.lua
+++ b/init.lua
@@ -796,6 +796,7 @@ require('lazy').setup({
auto_install = true,
highlight = {
enable = true,
+ disable = { 'haskell' },
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
-- If you are experiencing weird indenting issues, add the language to
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
Thank you very much!
@feoh should kickstart disable haskell treesitter highlight by default?
it's an excellent question but I must admit I don't know anything at all about that space.
Is this a relatively transient failure or will be broken for all time? I certainly don't know :-)
Describe the bug
When I try to write haskell custom data type (the snippet below). Neovim keeps halting right after writing Ship. And one cpu core starts spinning under 100% load. I have attached video below.
To Reproduce
Desktop
Neovim Version
Screencast from 2024-03-23 15-56-01.webm