plugins/smart-splits: init

This commit is contained in:
Gabriel Arazas 2024-02-14 19:05:01 +08:00 committed by Gaétan Lepage
parent bb9d56087d
commit 8bb460e261
3 changed files with 48 additions and 0 deletions

View file

@ -166,6 +166,7 @@
./utils/quickmath.nix
./utils/refactoring.nix
./utils/rest.nix
./utils/smart-splits.nix
./utils/specs.nix
./utils/spider.nix
./utils/startify.nix

View file

@ -0,0 +1,23 @@
{
config,
lib,
pkgs,
helpers,
...
}:
helpers.neovim-plugin.mkNeovimPlugin config {
name = "smart-splits";
originalName = "smart-splits.nvim";
defaultPackage = pkgs.vimPlugins.smart-splits-nvim;
maintainers = [lib.maintainers.foo-dogsquared];
settingsExample = {
resize_mode = {
quit_key = "<ESC>";
resize_keys = ["h" "j" "k" "l"];
silent = true;
};
ignored_events = ["BufEnter" "WinEnter"];
};
}

View file

@ -0,0 +1,24 @@
{
empty = {
plugins.smart-splits.enable = true;
};
example = {
plugins.smart-splits = {
enable = true;
settings = {
ignored_filetypes = ["nofile" "quickfix" "prompt"];
ignored_buftypes = ["NvimTree"];
default_amount = 3;
move_cursor_same_row = true;
cursor_follows_swapped_bufs = true;
resize_mode = {
quit_key = "<ESC>";
resize_keys = ["h" "j" "k" "l"];
silent = true;
};
};
};
};
}