mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
feat: nvim-surround
This commit is contained in:
parent
0c01fbc121
commit
2e40253457
8 changed files with 58 additions and 1 deletions
19
modules/utility/surround/config.nix
Normal file
19
modules/utility/surround/config.nix
Normal 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()
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/utility/surround/default.nix
Normal file
6
modules/utility/surround/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./config.nix
|
||||
./surround.nix
|
||||
];
|
||||
}
|
7
modules/utility/surround/surround.nix
Normal file
7
modules/utility/surround/surround.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue