nix-config/modules/home-manager/nvim/default.nix
Gabe Venberg 6f0e167087 added enable option to nvim
changed home-manager personal config namespace from home.* to user.*
2024-05-29 13:40:03 -05:00

49 lines
841 B
Nix

{
configs,
pkgs,
helpers,
lib,
config,
...
}: {
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";
};
programs.nushell.extraEnv = ''
$env.EDITOR = nvim
$env.VISUAL = nvim
'';
};
imports = [
./keybinds.nix
./options.nix
./simpleplugins.nix
./lualine.nix
./nvim-tree.nix
./toggleterm.nix
./gitsigns.nix
./which-key.nix
./telescope.nix
./treesitter
./cmp
./lsp
];
}