Skip to content

refactor(ftplugin): move from vimscript to lua#40

Open
antinomie8 wants to merge 5 commits intoyousefakbar:mainfrom
antinomie8:refactor/lua-ftplugins
Open

refactor(ftplugin): move from vimscript to lua#40
antinomie8 wants to merge 5 commits intoyousefakbar:mainfrom
antinomie8:refactor/lua-ftplugins

Conversation

@antinomie8
Copy link
Copy Markdown
Contributor

It annoyed me that when I deleted a mail with dd in notmuch-threads, the mails remained in the buffer and I had to refresh it to make them disappear. I think it would be a more intuitive behavior if the corresponding lines also got removed, that's why I began to port the notmuch-threads.vim ftplugin to lua to use vim.api.nvim_buf_set_lines for removing the lines corresponding to deleted emails, and I ended up rewriting all the vimscript in ftplugin/. Besides what I mentioned above there shouldn't be any other behavioral change, besides what I think is an error in ftplugin/mail.vim where it looks like tag is referenced but not defined.

With the following improvements:
- deleting mails in notmuch-threads removes them from the buffer
immediately
- fix undefined tag in mail.vim
@antinomie8 antinomie8 force-pushed the refactor/lua-ftplugins branch from b7a2578 to dad33ae Compare March 12, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant