mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
nixvim/plugins/smart-splits: remove
It has been upstreamed in NixVim so that's a-go-go.
This commit is contained in:
parent
40352d6a74
commit
d083b4d0b5
@ -6,6 +6,5 @@
|
|||||||
./plugins/lush-nvim.nix
|
./plugins/lush-nvim.nix
|
||||||
./plugins/legendary-nvim.nix
|
./plugins/legendary-nvim.nix
|
||||||
./plugins/nvim-config-local.nix
|
./plugins/nvim-config-local.nix
|
||||||
./plugins/smart-splits.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
{ config, lib, pkgs, helpers, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.plugins.smart-splits;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.plugins.smart-splits = {
|
|
||||||
enable = lib.mkEnableOption "smart-splits.nvim";
|
|
||||||
|
|
||||||
package = helpers.mkPackageOption "smart-splits.nvim" pkgs.vimPlugins.smart-splits-nvim;
|
|
||||||
|
|
||||||
settings = lib.mkOption {
|
|
||||||
type = with lib.types; attrsOf anything;
|
|
||||||
default = { };
|
|
||||||
description = ''
|
|
||||||
Configuration to be passed as argument to `setup` function of the
|
|
||||||
plugin.
|
|
||||||
'';
|
|
||||||
example = {
|
|
||||||
resize_mode = {
|
|
||||||
quit_key = "<ESC>";
|
|
||||||
resize_keys = [ "h" "j" "k" "l" ];
|
|
||||||
silent = true;
|
|
||||||
};
|
|
||||||
ignored_events = [ "BufEnter" "WinEnter" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
extraPlugins = [ cfg.package ];
|
|
||||||
|
|
||||||
extraConfigLua = ''
|
|
||||||
require('smart-splits').setup(${helpers.toLuaObject cfg.settings})
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user