u/14AUDDIN

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.

reddit.com
u/14AUDDIN — 2 days ago
▲ 3 r/neovim

Help configuring Harper-ls for NeoVim to turn off some grammar rules

Hello,

I've recently added Harper for spell and grammar checking in my init.lua file for my Neovim configuration.

I've tried using the documentation for settings up what grammar rules to follow and what to turn off, however the documentation is outdated (or so I think, it says to use require('lspconfig').harper_ls.setup() instead of vim.lsp.config[harper-ls]), so I've attempted to use the following code to turn off Spell Check, Long Sentences, and Sentence Capitalisation:

vim.lsp.config['harper-ls'] = {
	cmd = { 'harper-ls', '--stdio' },
	filetypes = { 'markdown', 'text', 'tex', 'typst', 'python' },
	settings = {
		['harper-ls'] = {
			linters = {
				SpellCheck = false,
				SentenceCapitalization = false,
				LongSentences = true,
			},
		},
	},
}

However, spell checking is still ON when I go try edit Markdown and Typst files.

How do I adapt the code from the documentation into something that works in NeoVim 0.12?

reddit.com
u/14AUDDIN — 4 days ago