mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-11 07:55:31 +00:00
Added plugin and config for vim-visual-multi
Added plugin and config for https://github.com/mg979/vim-visual-multi
This commit is contained in:
parent
9443273297
commit
a4d2c6171a
5 changed files with 30 additions and 0 deletions
|
|
@ -175,6 +175,7 @@ isMaximal: {
|
|||
icon-picker.enable = isMaximal;
|
||||
surround.enable = isMaximal;
|
||||
diffview-nvim.enable = true;
|
||||
visual-multi.enable = isMaximal;
|
||||
yanky-nvim.enable = false;
|
||||
motion = {
|
||||
hop.enable = true;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
./preview
|
||||
./surround
|
||||
./telescope
|
||||
./visual-multi
|
||||
./wakatime
|
||||
./yanky-nvim
|
||||
];
|
||||
|
|
|
|||
15
modules/plugins/utility/visual-multi/config.nix
Normal file
15
modules/plugins/utility/visual-multi/config.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
cfg = config.vim.utility.visual-multi;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = [pkgs.vimPlugins.vim-visual-multi];
|
||||
};
|
||||
};
|
||||
}
|
||||
6
modules/plugins/utility/visual-multi/default.nix
Normal file
6
modules/plugins/utility/visual-multi/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./vim-visual-multi.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.vim.utility.visual-multi = {
|
||||
enable = mkEnableOption "visual-multi.nvim plugin (multiple cursors)";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue