mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/intellitab: migrate to mkVimPlugin
This commit is contained in:
parent
9062a66ee9
commit
a24ec7412e
3 changed files with 7 additions and 28 deletions
|
@ -71,11 +71,6 @@ KNOWN_PATHS: dict[
|
||||||
"plugins/by-name/chadtree/default.nix": (State.OLD, Kind.NEOVIM, False),
|
"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/coq-thirdparty/default.nix": (State.OLD, Kind.NEOVIM, False),
|
||||||
"plugins/by-name/dap/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/leap/default.nix": (State.OLD, Kind.NEOVIM, False),
|
||||||
"plugins/by-name/lint/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),
|
"plugins/by-name/lspkind/default.nix": (State.OLD, Kind.NEOVIM, False),
|
||||||
|
|
|
@ -1,31 +1,15 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
helpers,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
lib.nixvim.vim-plugin.mkVimPlugin {
|
||||||
let
|
name = "intellitab";
|
||||||
cfg = config.plugins.intellitab;
|
packPathName = "intellitab.nvim";
|
||||||
in
|
package = "intellitab-nvim";
|
||||||
{
|
|
||||||
options = {
|
|
||||||
plugins.intellitab = {
|
|
||||||
enable = mkEnableOption "intellitab.nvim";
|
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "intellitab.nvim" {
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
default = [
|
|
||||||
"vimPlugins"
|
|
||||||
"intellitab-nvim"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
extraPlugins = [ cfg.package ];
|
|
||||||
|
|
||||||
|
extraConfig = {
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
mode = "i";
|
mode = "i";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
empty = {
|
empty = {
|
||||||
plugins.intellitab.enable = false;
|
plugins.intellitab.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue