2024-05-22 14:04:58 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
2024-05-26 02:07:23 +02:00
|
|
|
inputs,
|
2024-05-22 14:04:58 +02:00
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.modules.editors.nixvim;
|
2024-05-22 10:43:46 +02:00
|
|
|
in {
|
|
|
|
options.modules.editors.nixvim.enable = lib.mkEnableOption "nixvim";
|
|
|
|
imports = [
|
2024-05-26 02:07:23 +02:00
|
|
|
inputs.nixvim.nixosModules.nixvim
|
2024-05-22 14:04:58 +02:00
|
|
|
./keys.nix
|
2024-05-22 10:43:46 +02:00
|
|
|
./settings.nix
|
|
|
|
./plug/completion/cmp.nix
|
|
|
|
#./plug/completion/copilot-cmp.nix
|
|
|
|
#./plug/completion/lspkind.nix
|
|
|
|
./plug/git/gitlinker.nix
|
|
|
|
./plug/git/gitsigns.nix
|
|
|
|
./plug/git/lazygit.nix
|
|
|
|
./plug/git/worktree.nix
|
|
|
|
|
|
|
|
./plug/lsp/conform.nix
|
|
|
|
./plug/lsp/fidget.nix
|
|
|
|
./plug/lsp/hlchunk.nix
|
|
|
|
./plug/lsp/lsp.nix
|
|
|
|
./plug/lsp/lspsaga.nix
|
|
|
|
./plug/lsp/none-ls.nix
|
|
|
|
./plug/lsp/trouble.nix
|
|
|
|
|
|
|
|
./plug/snippets/luasnip.nix
|
|
|
|
|
|
|
|
./plug/statusline/lualine.nix
|
|
|
|
#./plug/statusline/staline.nix
|
|
|
|
|
|
|
|
#./plug/treesitter/treesitter-context.nix
|
|
|
|
./plug/treesitter/treesitter-textobjects.nix
|
|
|
|
./plug/treesitter/treesitter.nix
|
|
|
|
|
2024-05-22 14:04:58 +02:00
|
|
|
./plug/ui/alpha.nix
|
2024-05-22 10:43:46 +02:00
|
|
|
./plug/ui/btw.nix
|
|
|
|
./plug/ui/bufferline.nix
|
|
|
|
./plug/ui/noice.nix
|
|
|
|
./plug/ui/nvim-notify.nix
|
|
|
|
./plug/ui/telescope.nix
|
|
|
|
|
|
|
|
./plug/utils/comment.nix
|
2024-05-22 14:04:58 +02:00
|
|
|
#./plug/utils/copilot.nix
|
2024-05-22 10:43:46 +02:00
|
|
|
./plug/utils/flash.nix
|
|
|
|
./plug/utils/hardtime.nix
|
|
|
|
#./plug/utils/harpoon.nix
|
|
|
|
./plug/utils/grapple.nix
|
|
|
|
./plug/utils/illuminate.nix
|
|
|
|
./plug/utils/nvim-autopairs.nix
|
|
|
|
./plug/utils/oil.nix
|
|
|
|
./plug/utils/undotree.nix
|
|
|
|
./plug/utils/ufo.nix
|
|
|
|
./plug/utils/whichkey.nix
|
2024-05-22 15:32:37 +02:00
|
|
|
./plug/utils/lazy.nix
|
2024-05-22 10:43:46 +02:00
|
|
|
];
|
2024-05-22 14:04:58 +02:00
|
|
|
options = {
|
|
|
|
theme = lib.mkOption {
|
|
|
|
default = "gruvbox";
|
|
|
|
type = lib.types.enum ["paradise" "decay" "mountain" "tokyonight" "everforest" "everblush" "jellybeans" "aquarium" "gruvbox"];
|
2024-05-22 10:43:46 +02:00
|
|
|
};
|
|
|
|
};
|
2024-05-22 14:04:58 +02:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.nixvim.enable = true;
|
2024-05-26 02:36:36 +02:00
|
|
|
# theme = "gruvbox";
|
|
|
|
# programs.nixvim.extraConfigLua = ''
|
|
|
|
# _G.theme = "${config.theme}"
|
|
|
|
#'';
|
2024-05-22 14:04:58 +02:00
|
|
|
};
|
2024-05-22 10:43:46 +02:00
|
|
|
}
|