diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index dafd5a4..fea5af2 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -2,24 +2,8 @@ local M = {} local utils = require "core.utils" M.blankline = { - indentLine_enabled = 1, - filetype_exclude = { - "help", - "terminal", - "lazy", - "lspinfo", - "TelescopePrompt", - "TelescopeResults", - "mason", - "nvdash", - "nvcheatsheet", - "", - }, - buftype_exclude = { "terminal" }, - show_trailing_blankline_indent = false, - show_first_indent_level = false, - show_current_context = true, - show_current_context_start = true, + indent = { highlight = "IblChar" }, + scope = { highlight = "IblScopeChar" }, } M.luasnip = function(opts) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 3070c1a..0e8f84e 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -6,7 +6,7 @@ local default_plugins = { { "NvChad/base46", - branch = "v2.0", + branch = "v3.0", build = function() require("base46").load_all_highlights() end, @@ -49,7 +49,6 @@ local default_plugins = { { "lukas-reineke/indent-blankline.nvim", - version = "2.20.7", init = function() require("core.utils").lazy_load "indent-blankline.nvim" end, @@ -59,7 +58,10 @@ local default_plugins = { config = function(_, opts) require("core.utils").load_mappings "blankline" dofile(vim.g.base46_cache .. "blankline") - require("indent_blankline").setup(opts) + + local hooks = require "ibl.hooks" + hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_space_indent_level) + require("ibl").setup(opts) end, },