Skip to content

Commit

Permalink
plugins/intellitab: migrate to mkVimPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Dec 16, 2024
1 parent 9062a66 commit a24ec74
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
5 changes: 0 additions & 5 deletions flake-modules/dev/list-plugins/list-plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ class State(Enum):
"plugins/by-name/chadtree/default.nix": (State.OLD, Kind.NEOVIM, False),
"plugins/by-name/coq-thirdparty/default.nix": (State.OLD, Kind.NEOVIM, False),
"plugins/by-name/dap/default.nix": (State.OLD, Kind.NEOVIM, False),
"plugins/by-name/intellitab/default.nix": (
State.OLD,
Kind.VIM,
False,
), # No options
"plugins/by-name/leap/default.nix": (State.OLD, Kind.NEOVIM, False),
"plugins/by-name/lint/default.nix": (State.OLD, Kind.NEOVIM, False),
"plugins/by-name/lspkind/default.nix": (State.OLD, Kind.NEOVIM, False),
Expand Down
28 changes: 6 additions & 22 deletions plugins/by-name/intellitab/default.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
{
lib,
helpers,
config,
pkgs,
...
}:
with lib;
let
cfg = config.plugins.intellitab;
in
{
options = {
plugins.intellitab = {
enable = mkEnableOption "intellitab.nvim";

package = lib.mkPackageOption pkgs "intellitab.nvim" {
default = [
"vimPlugins"
"intellitab-nvim"
];
};
};
};
lib.nixvim.vim-plugin.mkVimPlugin {
name = "intellitab";
packPathName = "intellitab.nvim";
package = "intellitab-nvim";

config = mkIf cfg.enable {
extraPlugins = [ cfg.package ];
maintainers = [ lib.maintainers.GaetanLepage ];

extraConfig = {
keymaps = [
{
mode = "i";
Expand Down
2 changes: 1 addition & 1 deletion tests/test-sources/plugins/by-name/intellitab/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
empty = {
plugins.intellitab.enable = false;
plugins.intellitab.enable = true;
};
}

0 comments on commit a24ec74

Please sign in to comment.