Re: Recommended method to pair Notmuch with Neovim?

Subject: Re: Recommended method to pair Notmuch with Neovim?

Date: Mon, 17 Apr 2023 21:35:01 +0200

To: notmuch@notmuchmail.org

Cc:

From: Ralph Seichter


* Felipe Contreras:

> There hasn't been any development because to be frank it just works.

I did not mean to imply that "no repository changes" is necessarily a
bad thing. However, Neovim being quite volatile, I intuitively expected
some form of development for notmuch-vim being necessary to keep things
working.

> I've also started to rewrite it from scratch because a lot of it I
> think can be done in a much simpler way, but that doesn't really
> affect the users, it's just the maintenance of the code.

That tells me you are still invested in the subject, which is a welcome
thing to read.

> I tried notmuch-vim on neovim with ruby support some time ago and it
> worked fine. I think there was some issue with slowness, but they
> fixed it. I don't really remember.

I set up a virtual Ubuntu 22.04 Server with Notmuch for testing, and
managed to get Ruby 3 support for Neovim [1] working. I then used your
plugin via the "Lazy" package manager for Neovim. Some of the basics
work. Navigating and searching look OK, but I have yet to manage to send
email. So far, message bodies are always missing, so it is not usable
yet. Neovim keeps reporting tons of errors when I try to compose and
send email, and I have not yet delved deeper.

[1] https://github.com/neovim/neovim-ruby

> One alternative that I considered is to rewrite notmuch-vim in lua,
> but that would probably require some libnotmuch bindings for lua,
> which would take considerable amount of time to write. And that would
> only work for neovim, not vim.

From what I understand, Vim 9 introduces a new, proprietary scripting
language, while Neovim uses LUA? That seems to foreshadow lots of work
if one wishes to provide plugins that work with both editors.

> It might be better to just keep using ruby. It's a fantastic language,
> there's already pretty good bindings for libnotmuch, and it works for
> both vim and neovim.

Ruby may be a worthwhile language, but in this particular scenario of
Neovim and Notmuch, I see the end user's perspective: I don't need Ruby
to run anything but notmuch-vim, so I don't want to install Ruby on
various systems if it can be avoided. I'll do it if there is no
alternative, but LUA sure sounds better than Ruby to me. Selfish, I
know. ;-)

> I think you should just give it a try.

I began my experiments, but as stated above, I ran into issues that I
have yet to figure out.

Thank you for your response and for your plugin, Felipe.

-Ralph
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: