nix-config/modules/home-manager/nvim/default.nix

49 lines
841 B
Nix
Raw Normal View History

2024-03-24 17:39:49 -05:00
{
configs,
pkgs,
helpers,
lib,
config,
2024-03-24 17:39:49 -05:00
...
}: {
options.user.nvim.enable = lib.mkEnableOption "enable nvim";
config = lib.mkIf config.user.nvim.enable {
programs.nixvim = {
2024-03-24 17:39:49 -05:00
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";
2024-03-24 17:39:49 -05:00
};
programs.nushell.extraEnv = ''
$env.EDITOR = nvim
$env.VISUAL = nvim
'';
};
2024-03-31 16:23:56 -05:00
2024-03-24 17:39:49 -05:00
imports = [
./keybinds.nix
./options.nix
./simpleplugins.nix
./lualine.nix
./nvim-tree.nix
./toggleterm.nix
./gitsigns.nix
./which-key.nix
./telescope.nix
./treesitter
./cmp
./lsp
2024-03-24 17:39:49 -05:00
];
}