JuliaEditorSupport / julia-vim

Vim support for Julia.
http://julialang.org/
Other
752 stars 94 forks source link

Tab causes Neovim to freeze #270

Closed johngilbert2000 closed 3 years ago

johngilbert2000 commented 3 years ago

I am able to type Greek letters such as α with \alpha + Tab, for example, without any issues. I am also able to use Tab normally by typing Ctrl + V + Tab. However, if I forget to type Ctrl+V on a new line, hitting Tab in insert mode completely freezes my Vim, and the only way around it is to close my terminal and reopen the file, minus unsaved changes.

I'm using Neovim v0.4.3, with julia-vim and deoplete-julia plugins, and I only experience this issue when editing Julia files. I was able to get rid of this issue by using :let g:latex_to_unicode_tab = "off" and :call LaTeXtoUnicode#Init() as mentioned in the README, although this also got rid of the nice feature of being able to type fancy Greek letters, which is unfortunate.

carlobaldassi commented 3 years ago

I can't reproduce this problem with my config, even on nvim 4.3, but I'm not using deoplete-julia. My guess is that the issue is likely related to interactions with that plugin. I see it's no longer maintained though. Do you have the option to upgrade neovim to 0.5 and use something else, as advised on the julia-deoplete page?

carlobaldassi commented 3 years ago

By the way there are other ways to enter the fancy unicode characters without pressing tab, in particular as-you-type and keymap.

johngilbert2000 commented 3 years ago

Yeah I figured it might be due to my particular setup, but just wanted to mention the issue just in case. I'll play around with my setup later. In the meantime, switching the latex_to_unicode_tab feature off works fine for me