Skip to content

Conversation

@teto
Copy link
Member

@teto teto commented Nov 3, 2024

I wondered why my neovim was slow. Turned out notmuch.vim loading took > 500ms to load (ruby and all). And I dont even use it ! I suspect the plugin could be improved to lazyload more stuff but I think it's ok to have the vim plugin installer be a user decision as well. I moved it to a new "vim" output : you can install the plugin via "notmuch.vim"

since it might require a transition phase for notmuch users, I mark it as draft just so that users with the same issue can find this.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: vim Advanced text editor label Nov 3, 2024
I wondered why my neovim was slow. Turned out notmuch.vim loading took >
500ms to load (ruby and all). And I dont even use it !
I suspect the plugin could be improved to lazyload more stuff but I
think it's ok to have the vim plugin installer be a user decision as well.
I moved it to a new "vim" output : you can install the plugin via
"notmuch.vim"
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 8.has: changelog This PR adds or changes release notes labels Nov 19, 2024
@teto teto marked this pull request as ready for review November 19, 2024 20:00
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 19, 2024
@khaneliman
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 353500


x86_64-linux

⏩ 1 package blacklisted:
  • nixos-install-tools
❌ 2 packages failed to build:
  • alot
  • alot.dist
✅ 31 packages built:
  • aerc
  • afew
  • afew.dist
  • afew.doc
  • afew.man
  • astroid
  • i3status-rust
  • lieer
  • lieer.dist
  • muchsync
  • mujmap
  • neomutt
  • notifymuch
  • notifymuch.dist
  • notmuch
  • notmuch-addrlookup
  • notmuch-mailmover
  • notmuch.bindingconfig
  • notmuch.emacs
  • notmuch.info
  • notmuch.man
  • notmuch.vim (vimPlugins.notmuch-vim ,vimPlugins.notmuch-vim.bindingconfig ,vimPlugins.notmuch-vim.emacs ,vimPlugins.notmuch-vim.info ,vimPlugins.notmuch-vim.man ,vimPlugins.notmuch-vim.vim)
  • python311Packages.notmuch
  • python311Packages.notmuch.dist
  • python311Packages.notmuch2
  • python311Packages.notmuch2.dist
  • python312Packages.notmuch
  • python312Packages.notmuch.dist
  • python312Packages.notmuch2
  • python312Packages.notmuch2.dist
  • vimPluginsUpdater

aarch64-linux

⏩ 1 package blacklisted:
  • nixos-install-tools
❌ 2 packages failed to build:
  • alot
  • alot.dist
✅ 31 packages built:
  • aerc
  • afew
  • afew.dist
  • afew.doc
  • afew.man
  • astroid
  • i3status-rust
  • lieer
  • lieer.dist
  • muchsync
  • mujmap
  • neomutt
  • notifymuch
  • notifymuch.dist
  • notmuch
  • notmuch-addrlookup
  • notmuch-mailmover
  • notmuch.bindingconfig
  • notmuch.emacs
  • notmuch.info
  • notmuch.man
  • notmuch.vim (vimPlugins.notmuch-vim ,vimPlugins.notmuch-vim.bindingconfig ,vimPlugins.notmuch-vim.emacs ,vimPlugins.notmuch-vim.info ,vimPlugins.notmuch-vim.man ,vimPlugins.notmuch-vim.vim)
  • python311Packages.notmuch
  • python311Packages.notmuch.dist
  • python311Packages.notmuch2
  • python311Packages.notmuch2.dist
  • python312Packages.notmuch
  • python312Packages.notmuch.dist
  • python312Packages.notmuch2
  • python312Packages.notmuch2.dist
  • vimPluginsUpdater

x86_64-darwin

✅ 29 packages built:
  • aerc
  • afew
  • afew.dist
  • afew.doc
  • afew.man
  • lieer
  • lieer.dist
  • muchsync
  • mujmap
  • neomutt
  • notifymuch
  • notifymuch.dist
  • notmuch
  • notmuch-addrlookup
  • notmuch-mailmover
  • notmuch.bindingconfig
  • notmuch.emacs
  • notmuch.info
  • notmuch.man
  • notmuch.vim (vimPlugins.notmuch-vim ,vimPlugins.notmuch-vim.bindingconfig ,vimPlugins.notmuch-vim.emacs ,vimPlugins.notmuch-vim.info ,vimPlugins.notmuch-vim.man ,vimPlugins.notmuch-vim.vim)
  • python311Packages.notmuch
  • python311Packages.notmuch.dist
  • python311Packages.notmuch2
  • python311Packages.notmuch2.dist
  • python312Packages.notmuch
  • python312Packages.notmuch.dist
  • python312Packages.notmuch2
  • python312Packages.notmuch2.dist
  • vimPluginsUpdater

aarch64-darwin

✅ 29 packages built:
  • aerc
  • afew
  • afew.dist
  • afew.doc
  • afew.man
  • lieer
  • lieer.dist
  • muchsync
  • mujmap
  • neomutt
  • notifymuch
  • notifymuch.dist
  • notmuch
  • notmuch-addrlookup
  • notmuch-mailmover
  • notmuch.bindingconfig
  • notmuch.emacs
  • notmuch.info
  • notmuch.man
  • notmuch.vim (vimPlugins.notmuch-vim ,vimPlugins.notmuch-vim.bindingconfig ,vimPlugins.notmuch-vim.emacs ,vimPlugins.notmuch-vim.info ,vimPlugins.notmuch-vim.man ,vimPlugins.notmuch-vim.vim)
  • python311Packages.notmuch
  • python311Packages.notmuch.dist
  • python311Packages.notmuch2
  • python311Packages.notmuch2.dist
  • python312Packages.notmuch
  • python312Packages.notmuch.dist
  • python312Packages.notmuch2
  • python312Packages.notmuch2.dist
  • vimPluginsUpdater

@teto
Copy link
Member Author

teto commented Nov 20, 2024

ccing maintainers @flokli @puckipedia

@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Nov 20, 2024
@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Nov 20, 2024
@ofborg ofborg bot requested review from flokli and puckipedia November 20, 2024 14:48
@ofborg ofborg bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Nov 20, 2024
@flokli flokli merged commit 653b603 into NixOS:master Nov 21, 2024
33 of 34 checks passed
@teto teto deleted the teto/notmuch.vim branch June 16, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: vim Advanced text editor 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants