migrate to blankline v3.0 ( breaking change )

This commit is contained in:
siduck 2023-09-28 11:22:12 +05:30
parent 4a8fb69157
commit f48ff142f0
2 changed files with 7 additions and 21 deletions

View file

@ -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)

View file

@ -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,
},