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
|
@ -3,29 +3,33 @@
|
|||
pkgs,
|
||||
helpers,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
||||
colorschemes.base16 = {
|
||||
colorscheme = "gruvbox-dark-medium";
|
||||
options.user.nvim.enable = lib.mkEnableOption "enable nvim";
|
||||
config = lib.mkIf config.user.nvim.enable {
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
||||
colorschemes.base16 = {
|
||||
colorscheme = "gruvbox-dark-medium";
|
||||
enable = true;
|
||||
};
|
||||
|
||||
clipboard.providers.xsel.enable = true;
|
||||
};
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
};
|
||||
|
||||
clipboard.providers.xsel.enable = true;
|
||||
programs.nushell.extraEnv = ''
|
||||
$env.EDITOR = nvim
|
||||
$env.VISUAL = nvim
|
||||
'';
|
||||
};
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
};
|
||||
|
||||
programs.nushell.extraEnv = ''
|
||||
$env.EDITOR = nvim
|
||||
$env.VISUAL = nvim
|
||||
'';
|
||||
|
||||
imports = [
|
||||
./keybinds.nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue