nvf/lib/types/plugins.nix

110 lines
2 KiB
Nix
Raw Normal View History

2023-02-06 18:57:35 +00:00
{lib}:
with lib; let
# Plugin must be same as input name from flake.nix
availablePlugins = [
# TODO: sort by category
"nvim-treesitter-context"
"gitsigns-nvim"
"plenary-nvim"
"nvim-lspconfig"
"nvim-treesitter"
"lspsaga"
"lspkind"
"nvim-lightbulb"
"lsp-signature"
"nvim-tree-lua"
"nvim-bufferline-lua"
"lualine"
"nvim-compe"
"nvim-autopairs"
"nvim-ts-autotag"
"nvim-web-devicons"
"tokyonight"
"bufdelete-nvim"
"nvim-cmp"
"cmp-nvim-lsp"
"cmp-buffer"
"cmp-vsnip"
"cmp-path"
"cmp-treesitter"
"crates-nvim"
"vim-vsnip"
"nvim-code-action-menu"
"trouble"
"null-ls"
"which-key"
"indent-blankline"
"nvim-cursorline"
"sqls-nvim"
"glow-nvim"
"telescope"
"rust-tools"
"onedark"
"catppuccin"
"dracula"
2023-02-06 18:57:35 +00:00
"minimap-vim"
"dashboard-nvim"
"alpha-nvim"
"scrollbar-nvim"
"codewindow-nvim"
"nvim-notify"
"cinnamon-nvim"
"cheatsheet-nvim"
2023-06-04 06:41:10 +00:00
"ccc"
2023-02-06 18:57:35 +00:00
"cellular-automaton"
"presence-nvim"
"icon-picker-nvim"
"dressing-nvim"
"orgmode-nvim"
"obsidian-nvim"
"vim-markdown"
"tabular"
"toggleterm-nvim"
"noice-nvim"
"nui-nvim"
"copilot-lua"
"tabnine-nvim"
"nvim-session-manager"
"gesture-nvim"
"comment-nvim"
"kommentary"
"mind-nvim"
"fidget-nvim"
2023-03-01 09:08:24 +00:00
"diffview-nvim"
"todo-comments"
2023-04-02 18:38:54 +00:00
"flutter-tools"
"flutter-tools-patched"
"hop-nvim"
2023-04-04 23:14:13 +00:00
"leap-nvim"
2023-04-04 20:33:36 +00:00
"modes-nvim"
2023-04-04 23:14:13 +00:00
"vim-repeat"
2023-04-05 13:59:08 +00:00
"smartcolumn"
"project-nvim"
"elixir-ls"
"elixir-tools"
"nvim-colorizer-lua"
2023-06-06 00:05:05 +00:00
"vim-illuminate"
2023-06-07 11:28:27 +00:00
"nvim-surround"
2023-05-04 15:41:11 +00:00
"nvim-dap"
"nvim-dap-ui"
2023-02-06 18:57:35 +00:00
];
# You can either use the name of the plugin or a package.
2023-04-04 20:33:36 +00:00
pluginsType = with types;
listOf (
nullOr (
either
(enum availablePlugins)
package
)
);
2023-02-06 18:57:35 +00:00
in {
pluginsOpt = {
description,
default ? [],
}:
mkOption {
inherit description default;
type = pluginsType;
};
}