this post was submitted on 22 Dec 2023
9 points (100.0% liked)

Neovim

2178 readers
2 users here now

founded 1 year ago
MODERATORS
 

I'm new to vim and getting the hang of the configuration. I've gone through a couple of youtube videos giving a tutorial of setting it up with lazy.nvim. Now I am following ThePrimeagen's config, and UndoTree doesn't work.

The plugin is loaded and my config is properly sourced, but when I run run :UndoTreeToggle, I get this lovely error:

(E5108: Error executing lua: function undotree#UndotreeToggle[11]..<SNR>37_new[2]..41, line 6: Vim(echoerr):"diff" is not executable. stack traceback: [C]: at 0x7ff77ae89570)

I am running windows (currenty in the process of backing up my personal data so I can try out Linux without feeling too disconnected from my daily computer user). I did a little bit of google searching and checked the issues on github, unfortunately I couldn't find anything related to my problem. Any help would be much appreciated.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 11 months ago

I took a quick look at the plugin and it looks like it depends on the diff command line utility. I dont think it comes installed with Microsoft Windows, but if you manually installed it, id open a new terminal and try running the diff utility manually to see if its on the executable path.

But if you want to try installing it, I think it comes with Git bash for windows.

I hope this helps, have fun with Neovim!