feat: nvim-surround

This commit is contained in:
NotAShelf 2023-06-07 14:28:27 +03:00
commit 2e40253457
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
8 changed files with 58 additions and 1 deletions

View file

@ -9,5 +9,6 @@ _: {
./telescope
./diffview
./wakatime
./surround
];
}

View file

@ -0,0 +1,19 @@
{
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.utility.surround;
in {
config = mkIf (cfg.enable) {
vim.startPlugins = [
"nvim-surround"
];
vim.luaConfigRC.surround = nvim.dag.entryAnywhere ''
require('nvim-surround').setup()
'';
};
}

View file

@ -0,0 +1,6 @@
_: {
imports = [
./config.nix
./surround.nix
];
}

View file

@ -0,0 +1,7 @@
{lib, ...}:
with lib;
with builtins; {
options.vim.utility.surround = {
enable = mkEnableOption "nvim-surround: add/change/delete surrounding delimiter pairs with ease";
};
}