added enable option to nvim
changed home-manager personal config namespace from home.* to user.*
This commit is contained in:
parent
322788aa3a
commit
6f0e167087
30 changed files with 539 additions and 525 deletions
|
@ -4,15 +4,10 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
home.nvim.enable-completions =
|
||||
(lib.mkEnableOption "basic completion in nvim")
|
||||
// {
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
options.user.nvim.enable-completions = lib.mkEnableOption "basic completion in nvim";
|
||||
|
||||
config =
|
||||
lib.mkIf config.home.nvim.enable-completions
|
||||
lib.mkIf (config.user.nvim.enable-completions && config.user.nvim.enable)
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.luasnip.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue