diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/indent-blankline.lua | 28 | ||||
| -rw-r--r-- | lua/plugins.lua | 1 |
2 files changed, 19 insertions, 10 deletions
diff --git a/lua/config/indent-blankline.lua b/lua/config/indent-blankline.lua index 3c4a33d..3ddadbe 100644 --- a/lua/config/indent-blankline.lua +++ b/lua/config/indent-blankline.lua @@ -1,21 +1,29 @@ local api = vim.api -local exclude_ft = { "help", "git", "markdown", "snippets", "text", "gitconfig", "alpha" } -require("indent_blankline").setup { - -- U+2502 may also be a good choice, it will be on the middle of cursor. - -- U+250A is also a good choice - char = "▏", - show_end_of_line = false, +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, + }, disable_with_nolist = true, - buftype_exclude = { "terminal" }, - filetype_exclude = exclude_ft, + 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 = "IndentBlanklineDisable", + command = "IBLDisable", }) api.nvim_create_autocmd("InsertLeave", { @@ -23,7 +31,7 @@ api.nvim_create_autocmd("InsertLeave", { group = gid, callback = function() if not vim.tbl_contains(exclude_ft, vim.bo.filetype) then - vim.cmd([[IndentBlanklineEnable]]) + vim.cmd([[IBLEnable]]) end end, }) diff --git a/lua/plugins.lua b/lua/plugins.lua index 054ec92..1edbe04 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -170,6 +170,7 @@ local plugin_specs = { { "lukas-reineke/indent-blankline.nvim", event = "VeryLazy", + main = 'ibl', config = function() require("config.indent-blankline") end, |
