News for hackers. Stuff that matters.
Re:Interview with TJ DeVries, Neovim core maintainer by dfdz on Monday September 06, 2021 @02:24PM (#28436497)
Hi tjdevries, I have been thinking about switching to neovim from vim.

Do you have any advice/reference for setting up Latex Synctex (Forward and Backwards search) for neovim and evince (on Linux)?

From looking online there seem to be several possible approaches for doing this in neovim (currently in Vim I use an adapted version of evince_dbus.py from the latex gedit latex plugin but it was a pain to get set up!)

Re:Interview with TJ DeVries, Neovim core maintainer by tjdevries on Monday September 06, 2021 @02:32PM (#28436589)
I have to phone a friend in this one. I don't know much about latex in neovim these days.

I pinged a buddy of mine to hopefully be able to respond here though!

Re:Interview with TJ DeVries, Neovim core maintainer by tjdevries on Monday September 06, 2021 @02:41PM (#28436668)
Ok, got some responses from him (I don't know what any of these things mean haha):

vimtex works perfectly on neovim (in fact, the main developer uses neovim) and is very well documented

texlab (the latex lsp server) also does build and forward search (although there's a small bug at the moment)

Oh, and backward search needs neovim-remote (\o/ mhinz); just use nvr --remote +"%line" "%file" as backward search command

https://github.com/lervag/vimtex/blob/5d1335d095d11f48a6744f...

(the vimtex dev uses Zathura, so that may be an alternative viewer to look into)

Re:Interview with TJ DeVries, Neovim core maintainer by dfdz on Monday September 06, 2021 @02:59PM (#28436815)
Thank you for the detailed answer, I really appreciate it.

It it great to know that the main developer for vimtex uses neovim.

I will try the neovim/vimtex/zathura combination used by the dev!

Re:Interview with TJ DeVries, Neovim core maintainer by tambourine_man on Monday September 06, 2021 @04:17PM (#28437591)
You gotta love HN. Threads like this just makes you smile.
Re:Interview with TJ DeVries, Neovim core maintainer by dfdz on Monday September 06, 2021 @05:58PM (#28438555)
Just to follow up, my attempts to get vimtex to work unfortunately were unsuccessful. However, along the way reading neovim plugin docs I started to figure out the difference between neovim and vim and was able to get things working via the following process:

sudo dnf install neovim

sudo dnf install python3-neovim

mkdir -p ~/.config/pack/foo/opt/mytex

cd ~/.config/pack/foo/opt/mytex

[download https://github.com/peterbjorgensen/sved/ftplugin]

cp ~/.vimrc ~/.config/nvim/init.vim

add the line "packadd mytex" to init.vim

add the line "alias vim='nvim'" to ~/.bashrc :)