From adddbc0ba6dde26cc0ed678a2a6cb1a7c8875b84 Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 8 Apr 2025 19:13:01 +0200 Subject: [PATCH] remove indent-blankline and use mini.indentscope --- lua/config/indent-blankline.lua | 36 --------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 lua/config/indent-blankline.lua diff --git a/lua/config/indent-blankline.lua b/lua/config/indent-blankline.lua deleted file mode 100644 index 9b210d7..0000000 --- a/lua/config/indent-blankline.lua +++ /dev/null @@ -1,36 +0,0 @@ -local api = vim.api - -local exclude_ft = { "help", "git", "markdown", "snippets", "text", "gitconfig", "alpha", "dashboard" } - -require("ibl").setup { - indent = { - -- -- U+2502 may also be a good choice, it will be on the middle of cursor. - -- -- U+250A is also a good choice - char = "▏", - }, - scope = { - show_start = false, - show_end = false, - }, - exclude = { - filetypes = exclude_ft, - buftypes = { "terminal" }, - }, -} - -local gid = api.nvim_create_augroup("indent_blankline", { clear = true }) -api.nvim_create_autocmd("InsertEnter", { - pattern = "*", - group = gid, - command = "IBLDisable", -}) - -api.nvim_create_autocmd("InsertLeave", { - pattern = "*", - group = gid, - callback = function() - if not vim.tbl_contains(exclude_ft, vim.bo.filetype) then - vim.cmd([[IBLEnable]]) - end - end, -})