Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIM: module #23089

Closed
wants to merge 1 commit into from
Closed

VIM: module #23089

wants to merge 1 commit into from

Conversation

ndowens
Copy link
Contributor

@ndowens ndowens commented Feb 22, 2017

Motivation for this change

Enable VIM to be set as default editor

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • [NA] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • [NA] Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@ndowens, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @bjornfor and @offlinehacker to be potential reviewers.

@bjornfor
Copy link
Contributor

I'm not sure if this is worth it. It changes a two line config into one (in /etc/nixos/configuration.nix). Also, the "services" namespace for this option feels wrong.

};

config = mkIf cfg.defaultEditor {
environment.systemPackages = [ pkgs.vim ];
Copy link
Member

Choose a reason for hiding this comment

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

There are a bunch of different versions of vim in nixpkgs, can you include an option for the package that should be used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done :)

@ndowens
Copy link
Contributor Author

ndowens commented Feb 22, 2017

@bjornfor if you look at emacs, it uses the same namespace

Copy link
Member

@LnL7 LnL7 left a comment

Choose a reason for hiding this comment

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

The reason emacs is under services is because it provides a user service, that's not the case here.

};

config = mkIf cfg.defaultEditor {
environment.systemPackages = [ pkgs.vimnox ];
Copy link
Member

Choose a reason for hiding this comment

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

I was talking about a configurable package option used by the rest of the module, pkgs.vim is fine as a default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done @LnL7

@matthiasbeyer
Copy link
Contributor

I would agree with @bjornfor and say no here. It is really not worth it, sorry!

@ndowens
Copy link
Contributor Author

ndowens commented Feb 24, 2017

@matthiasbryer maybe it isn't? But just trying to contribute in what I can do and enjoy trying to do something. Thought maybe since emacs had a module then vim should have one , in which I founder later on it does have one

@@ -191,6 +191,7 @@
./services/development/hoogle.nix
./services/editors/emacs.nix
./services/editors/infinoted.nix
./services/editors/vim.nix
Copy link
Member

Choose a reason for hiding this comment

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

Remove this line as there is no vim service.

When enabled, installs vim and configures vim to be the default editor
using the EDITOR environment variable.
When enabled, installs vim and configures vim to be the default editor
using the EDITOR environment variable.
Copy link
Member

Choose a reason for hiding this comment

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

The indention was right before. Please revert.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fpletz Done with both requests

Vim module: Specified which VIM package to use

Edited existing VIM-module, and added package option

VIM module: added missing function

Removed VIM from services module, fixed indention
Copy link
Member

@LnL7 LnL7 left a comment

Choose a reason for hiding this comment

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

I think having a package option for this makes sense.

@oxij
Copy link
Member

oxij commented Mar 4, 2017 via email

@ndowens
Copy link
Contributor Author

ndowens commented Mar 4, 2017

All I wanted to do was update it a bit :)

@oxij
Copy link
Member

oxij commented Mar 4, 2017 via email

@LnL7
Copy link
Member

LnL7 commented Mar 4, 2017

It was introduced in #19438

@ndowens ndowens closed this Mar 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants