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: allow to set global vimrc #28925
Conversation
I don't see the need for this option because it's such a thin wrapper around |
Yes, i know, but not everyone knows that you can put global config in |
nixos/modules/programs/vim.nix
Outdated
type = types.lines; | ||
default = ""; | ||
description = '' | ||
Global vimrc configuration | ||
''; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.defaultEditor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this means to set /etc/vimrc
, vim has to be the default editor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, will fix that.
d949463
to
644fcae
Compare
I improved this module a bit, so i added |
After adding
|
Adds `enable` option that installs vim regardless if `defaultEditor` option is set.
644fcae
to
b6203c0
Compare
I see little advantage if it doesn't replace the (obsolete) vim_configure system. Would you feel like converting it into a module ? You can see in nixos/modules/system/boot/kernel_config.nix how to write a module that can be used independtly of the global config namespace. |
Are there any updates on this pull request, please? |
I'm closing this, as I do not need it anymore, since I'm using: https://github.com/rycee/home-manager |
Motivation for this change
I would like to have global vimrc config. This is optional and should not break anything.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)