jakewvincent / mkdnflow.nvim

Fluent navigation and management of markdown notebooks
GNU General Public License v3.0
695 stars 41 forks source link

Bug: mkdnflow freezes neovim when I press <tab> in insert mode #100

Closed jjiangweilan closed 2 years ago

jjiangweilan commented 2 years ago

I think this happens after I upgrade neovim to 0.8, I have disabled all the plugins in init.vim except mkdnflow. If you think it's only me hving the problem (which highly likely) could you please give me some direction to fix the issue? It only happens when I open a markdown file with mkdnflow on.

jjiangweilan commented 2 years ago

after I disabled MkdnTableNextCell = {'i', '<Tab>'} and MkdnTablePrevCell = {'i', '<S-Tab>'}, the program worked as expected. Maybe something wrong with these two's implementation in 0.8

jakewvincent commented 2 years ago

I've added a workaround for this. Like you suggested, this may have something to do with Neovim 0.8, but I couldn't figure out what that might have been, so I've made an update that accomplishes the same thing as before but does it in a different way. In my testing, it is now working as expected again. Thanks for the issue, and please feel free to reopen this if this doesn't seem to be resolved after updating.

ghost commented 2 years ago

I'm with this same issue. When I press tab the resources of my neovim goes up to 5Gb of ram and 15% of my process. I have the neovim version 8.0 from the Fedora repositories and with the latest version of your plugin.

jakewvincent commented 2 years ago

@marshallishere, if you're positive you've recently updated the plug-in and restarted Neovim, I'll look back into this as soon as possible. Have you noticed if the issue occurs if you press tab while in a table?

ghost commented 2 years ago

I created a new index.md, placed three |, typed 'something' on the first and then pressed tab. This makes the issue. I tested the command to make a table and this works without any problems.

jakewvincent commented 2 years ago

Just to double check this is the same issue, are you getting the freezing when you press tab anywhere in a document while in insert mode, e.g. on a blank line?

ghost commented 2 years ago

When I create the table like the way I said, yes.

jakewvincent commented 2 years ago

Got it. What you're experiencing seems to be a separate issue, so I've opened a new issue with it and will address this further there. I've reproduced it, though, so I will get this fixed as soon as possible.