Skip to content

neovim: heavy refactor#257924

Closed
teto wants to merge 4 commits intoNixOS:stagingfrom
teto:neovim-refactor
Closed

neovim: heavy refactor#257924
teto wants to merge 4 commits intoNixOS:stagingfrom
teto:neovim-refactor

Conversation

@teto
Copy link
Copy Markdown
Member

@teto teto commented Sep 28, 2023

Description of changes

Follow up of #237425 (comment) .

WIP, creating it ahead of time just to have a reference when cloing other issues

Goal is to simplify the configuration of neovim. Right now we have several mechanisms to configure: override, wrapNeovim, makeNeovimConfig the latter being introduced by me but never documented as it didn't feel right. With the finalAttrs pattern we finally have self-documented parameters: launch a nix repl and explore neovim attributes, you can change them via overrideAttrs and they will automatically be taken into account.

And we can get rid of makeNeovimConfig: we can expose everything in the wrapper derivation: user customRc, the generatedRc etc. No need to find back the correct setting in the override call to adjust something down the line.
makeNeovimConfig will be kept for 23.11, not sure if it's going to be deprecated, depends how much time I can dedicate to this basically.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.11 Release Notes (or backporting 23.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.

@github-actions github-actions bot added the 6.topic: vim Advanced text editor label Sep 28, 2023
@mweinelt
Copy link
Copy Markdown
Member

Triggering eval after it was fixed on master.

@ofborg eval

@teto teto mentioned this pull request Oct 1, 2023
12 tasks
@teto teto mentioned this pull request Oct 9, 2023
12 tasks
teto added 4 commits October 10, 2023 01:41
the latest changes skipped the postBuild hook which in turn would prevent the wrapping from being done
@teto teto force-pushed the neovim-refactor branch from fccce95 to c9143e1 Compare October 9, 2023 23:41
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Oct 10, 2023
@teto
Copy link
Copy Markdown
Member Author

teto commented Oct 10, 2023

Introducing "plugins" here might be too opiniated. Let's first introduce init.lua support and after 23.11 we can discuss this more calmly.

@lucc lucc mentioned this pull request Oct 23, 2023
12 tasks
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Mar 20, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2024
@teto teto closed this Oct 21, 2024
@teto
Copy link
Copy Markdown
Member Author

teto commented Oct 21, 2024

equivalent merged in PR #344541

@teto teto deleted the neovim-refactor branch October 21, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: vim Advanced text editor 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants