Setting up NeoVim as an external editor for Joplin in Windows.
Not asking for solutions, just leaving this here since I had so much trouble figuring out how to set NeoVim as the external editor for Joplin in Windows 11 for anyone else who is having trouble setting up NeoVim as an external editor.
First:
Under Tools > Options > General, there are the settings for configuring the external editor.
Here there are two input boxes.
In the first box you will need to enter the Path of the terminal that you're using NeoVim in, in my case that would be C:\Users\profile\AppData\Local\Microsoft\WindowsApps\wt.exe which is the path to using Windows Terminal.
The second input box is for arguments, you just add nvim or whatever you're using to start NeoVim from the terminal.
Second:
After setting this up, you might notice that changes are sometimes not saved to Joplin. This is most likely caused by NeoVim creating backup files of the markdown file that you're editing from Joplin.
To solve this you need to disable backups in NeoVim. There are two methods of doing this:
The first method will apply to the current buffer that you're working in.
Using the command:
:set nowritebackup nobackup
This will only work in the current buffer that you're working in. You'll have to do this every time you want to edit Joplin notes in NeoVim.
The second method is by configuring it in you init.lua file with the following two lines of code:
vim.o.backup = false
vim.o.writebackup = false
This will disable backups for all buffers whenever you start editing files in NeoVim.