Skip to content

nixos/profiles/base: install vim w/nix-syntax plugin#201380

Merged
Ma27 merged 1 commit intoNixOS:masterfrom
Ma27:installer/vim-with-nix-support
Dec 3, 2022
Merged

nixos/profiles/base: install vim w/nix-syntax plugin#201380
Ma27 merged 1 commit intoNixOS:masterfrom
Ma27:installer/vim-with-nix-support

Conversation

@Ma27
Copy link
Copy Markdown
Member

@Ma27 Ma27 commented Nov 15, 2022

Description of changes

Considering that you most likely edit Nix code in the installer, that seems like a useful thing.

The size of the ISO I got from

nix-build nixos/release.nix -A iso_minimal.x86_64-linux

is still at 877M.

As suggested by @madonius.

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/)
  • 22.11 Release Notes (or backporting 22.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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Nov 15, 2022
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 15, 2022
@nixos-discourse
Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/1469

Copy link
Copy Markdown
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should help people a lot in creating less syntax errors

@teto
Copy link
Copy Markdown
Member

teto commented Nov 30, 2022

+1 on the intention but the growth in size is too much. vim and vim_configurable must have different compilation flags. Could you reduce it ? how much would it be with neovim (just curious) ?

@jsoo1
Copy link
Copy Markdown
Contributor

jsoo1 commented Dec 1, 2022

I still think the best thing to do is to upstream nix syntax highlighting to the vim tree.

See here LnL7/vim-nix#47

I'm mostly waiting on some word from LnL7 if they would be alright letting someone take over maintenance of the syntax definitions.

Or maybe the definitions could be added to the community repos or the official repos even as point of contact for vim maintainers.

@jsoo1
Copy link
Copy Markdown
Contributor

jsoo1 commented Dec 1, 2022

Opened vim/vim#11646

@mweinelt mweinelt added the 12.approvals: 1 This PR was reviewed and approved by one person. label Dec 3, 2022
Considering that you most likely edit Nix code in the installer, that
seems like a useful thing.

The size of the ISO I got from

    nix-build nixos/release.nix -A iso_minimal.x86_64-linux

is still at 877M.
@Ma27 Ma27 force-pushed the installer/vim-with-nix-support branch from 2b1ed69 to 0b5a0cb Compare December 3, 2022 15:05
@Ma27
Copy link
Copy Markdown
Member Author

Ma27 commented Dec 3, 2022

@ncfavier TIL, thanks! Indeed, this doesn't cause a significant increase of size, we're still at 877M now.

I'd be in favor of merging it, we can still remove it again if vim actually includes Nix integration.

@Ma27 Ma27 requested a review from ncfavier December 3, 2022 15:06
@Ma27 Ma27 merged commit d85c685 into NixOS:master Dec 3, 2022
@Ma27 Ma27 deleted the installer/vim-with-nix-support branch December 3, 2022 15:20
@ncfavier
Copy link
Copy Markdown
Member

ncfavier commented Dec 3, 2022

Backports: #204307 #204313

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 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants