Search code examples
neovimtermux

Setting up nvim on termux


I have installed nvim succesfully with apt install. However when I open it, the following error is displayed (hitting enter a few times opens neovim succesfuly with the regular vim motions working as intended).

I think I saw some suggested fix somewhere online, but it suggested editingenter image description here files that was unable to locate.


Solution

  • I had a similar problem to this. The init.lua and init.vim files both configure the settings in neovim. I'm not entirely sure, but it could be, as shown in the error message, that the two files cancel each other out. The solution I suggest is to choose one of the two configuration files, or see this Reddit post if you need both: https://www.reddit.com/r/neovim/comments/zfimqo/is_it_possible_to_use_initvim_and_initlua_together/