2024-03-24 23:39:49 +01:00
|
|
|
{
|
|
|
|
configs,
|
|
|
|
pkgs,
|
|
|
|
helpers,
|
|
|
|
lib,
|
2024-05-29 20:40:03 +02:00
|
|
|
config,
|
2024-03-24 23:39:49 +01:00
|
|
|
...
|
|
|
|
}: {
|
2024-05-29 20:40:03 +02:00
|
|
|
options.user.nvim.enable = lib.mkEnableOption "enable nvim";
|
|
|
|
config = lib.mkIf config.user.nvim.enable {
|
|
|
|
programs.nixvim = {
|
2024-03-24 23:39:49 +01:00
|
|
|
enable = true;
|
2024-05-29 20:40:03 +02:00
|
|
|
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 23:39:49 +01:00
|
|
|
};
|
|
|
|
|
2024-05-29 20:40:03 +02:00
|
|
|
programs.nushell.extraEnv = ''
|
2024-11-06 14:00:50 +01:00
|
|
|
$env.EDITOR = 'nvim'
|
|
|
|
$env.VISUAL = 'nvim'
|
2024-05-29 20:40:03 +02:00
|
|
|
'';
|
2024-03-25 04:09:58 +01:00
|
|
|
};
|
2024-03-31 23:23:56 +02:00
|
|
|
|
2024-03-24 23:39:49 +01:00
|
|
|
imports = [
|
|
|
|
./keybinds.nix
|
|
|
|
./options.nix
|
|
|
|
./simpleplugins.nix
|
|
|
|
./lualine.nix
|
|
|
|
./nvim-tree.nix
|
|
|
|
./toggleterm.nix
|
|
|
|
./gitsigns.nix
|
|
|
|
./which-key.nix
|
|
|
|
./telescope.nix
|
2024-03-27 17:30:17 +01:00
|
|
|
./treesitter
|
|
|
|
./cmp
|
|
|
|
./lsp
|
2024-03-24 23:39:49 +01:00
|
|
|
];
|
|
|
|
}
|