2023-02-06 19:57:35 +01: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"
|
2023-04-18 01:01:45 +02:00
|
|
|
"dracula"
|
2023-02-06 19:57:35 +01:00
|
|
|
"minimap-vim"
|
|
|
|
"dashboard-nvim"
|
|
|
|
"alpha-nvim"
|
|
|
|
"scrollbar-nvim"
|
|
|
|
"codewindow-nvim"
|
|
|
|
"nvim-notify"
|
|
|
|
"cinnamon-nvim"
|
|
|
|
"cheatsheet-nvim"
|
2023-06-04 08:41:10 +02:00
|
|
|
"ccc"
|
2023-02-06 19:57:35 +01: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"
|
2023-02-16 21:32:46 +01:00
|
|
|
"comment-nvim"
|
|
|
|
"kommentary"
|
2023-02-16 21:57:56 +01:00
|
|
|
"mind-nvim"
|
2023-02-28 11:00:38 +01:00
|
|
|
"fidget-nvim"
|
2023-03-01 10:08:24 +01:00
|
|
|
"diffview-nvim"
|
2023-03-01 11:27:17 +01:00
|
|
|
"todo-comments"
|
2023-04-02 20:38:54 +02:00
|
|
|
"flutter-tools"
|
2023-06-25 14:09:12 +02:00
|
|
|
"flutter-tools-patched"
|
2023-03-09 11:28:02 +01:00
|
|
|
"hop-nvim"
|
2023-04-05 01:14:13 +02:00
|
|
|
"leap-nvim"
|
2023-04-04 22:33:36 +02:00
|
|
|
"modes-nvim"
|
2023-04-05 01:14:13 +02:00
|
|
|
"vim-repeat"
|
2023-04-05 15:59:08 +02:00
|
|
|
"smartcolumn"
|
2023-04-07 19:31:43 +02:00
|
|
|
"project-nvim"
|
2023-04-15 11:43:50 +02:00
|
|
|
"elixir-ls"
|
2023-04-15 21:51:13 +02:00
|
|
|
"elixir-tools"
|
2023-06-04 09:24:06 +02:00
|
|
|
"nvim-colorizer-lua"
|
2023-06-06 02:05:05 +02:00
|
|
|
"vim-illuminate"
|
2023-06-07 13:28:27 +02:00
|
|
|
"nvim-surround"
|
2023-05-04 17:41:11 +02:00
|
|
|
"nvim-dap"
|
|
|
|
"nvim-dap-ui"
|
2023-07-19 21:49:06 +02:00
|
|
|
"nvim-navic"
|
|
|
|
"nvim-navbuddy"
|
2023-02-06 19:57:35 +01:00
|
|
|
];
|
|
|
|
# You can either use the name of the plugin or a package.
|
2023-04-04 22:33:36 +02:00
|
|
|
pluginsType = with types;
|
|
|
|
listOf (
|
|
|
|
nullOr (
|
|
|
|
either
|
|
|
|
(enum availablePlugins)
|
|
|
|
package
|
|
|
|
)
|
|
|
|
);
|
2023-02-06 19:57:35 +01:00
|
|
|
in {
|
|
|
|
pluginsOpt = {
|
|
|
|
description,
|
|
|
|
default ? [],
|
|
|
|
}:
|
|
|
|
mkOption {
|
|
|
|
inherit description default;
|
|
|
|
type = pluginsType;
|
|
|
|
};
|
|
|
|
}
|