Skip to content

Commit e653e42

Browse files
committed
enable mini.nvim plugin (replace nvim-surround)
1 parent f2f1f84 commit e653e42

File tree

5 files changed

+50
-1
lines changed

5 files changed

+50
-1
lines changed

flake.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
};
4141

4242
# Text objects
43+
mini-nvim = {
44+
url = github:echasnovski/mini.nvim;
45+
flake = false;
46+
};
47+
4348
nvim-surround = {
4449
url = github:kylechui/nvim-surround;
4550
flake = false;

modules/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
./lsp
2020
./markdown
2121
./mind
22+
./mini
2223
./neoclip
2324
./neovim
2425
./notifications

modules/mini/default.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{ config, lib, pkgs, ... }:
2+
3+
with lib;
4+
5+
let
6+
cfg = config.vim.mini;
7+
in
8+
{
9+
options.vim.mini = {
10+
enable = mkOption {
11+
type = types.bool;
12+
default = true;
13+
description = "Enable mini.nvim (mini.ai and mini.surround) plugins";
14+
};
15+
};
16+
17+
config = mkIf cfg.enable
18+
{
19+
vim.startPlugins = [ pkgs.neovimPlugins.mini-nvim ];
20+
21+
vim.luaConfigRC = ''
22+
require('mini.ai').setup()
23+
require('mini.surround').setup()
24+
'';
25+
};
26+
}

modules/surround/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ in
99
options.vim.surround = {
1010
enable = mkOption {
1111
type = types.bool;
12-
default = true;
12+
default = false;
1313
description = "Enable nvim-surround plugin";
1414
};
1515
};

0 commit comments

Comments
 (0)