mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-03 05:44:31 +02:00
plugins/smart-splits: init
This commit is contained in:
parent
bb9d56087d
commit
8bb460e261
3 changed files with 48 additions and 0 deletions
|
@ -166,6 +166,7 @@
|
||||||
./utils/quickmath.nix
|
./utils/quickmath.nix
|
||||||
./utils/refactoring.nix
|
./utils/refactoring.nix
|
||||||
./utils/rest.nix
|
./utils/rest.nix
|
||||||
|
./utils/smart-splits.nix
|
||||||
./utils/specs.nix
|
./utils/specs.nix
|
||||||
./utils/spider.nix
|
./utils/spider.nix
|
||||||
./utils/startify.nix
|
./utils/startify.nix
|
||||||
|
|
23
plugins/utils/smart-splits.nix
Normal file
23
plugins/utils/smart-splits.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
}
|
24
tests/test-sources/plugins/utils/smart-splits.nix
Normal file
24
tests/test-sources/plugins/utils/smart-splits.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue