From fb59f30611786510ac7d9b62fa3b05ef53681630 Mon Sep 17 00:00:00 2001 From: xieby1 Date: Tue, 28 May 2024 15:01:20 +0800 Subject: [PATCH] usr: cli: vim: mini.nvim: enable indentscope --- usr/cli/vim.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/usr/cli/vim.nix b/usr/cli/vim.nix index a0aca03b..a105f738 100644 --- a/usr/cli/vim.nix +++ b/usr/cli/vim.nix @@ -362,6 +362,22 @@ let } ''; }; + # mini-nvim is wonderful nvim plugin! + # I found it due to below link: + # indent-blankline.nvim is too complex. + # However, it does not support basic functionality like highlight current indentation + # See: https://github.com/lukas-reineke/indent-blankline.nvim/issues/649 + my-mini-nvim = { + plugin = pkgs.vimPlugins.mini-nvim; + type = "lua"; + config = '' + require('mini.indentscope').setup{ + options = { + try_as_border = true, + }, + } + ''; + }; in { imports = [(let @@ -944,6 +960,7 @@ in my-hbac my-winshift-nvim my-smartyank-nvim + my-mini-nvim ] ++ (lib.optional config.isGui markdown-preview-nvim); vimdiffAlias = true; extraPackages = with pkgs; [