vim: update indent-blankline and fix breaking changes

This commit is contained in:
Fernando Schauenburg 2024-02-08 20:25:11 +01:00
parent e5e8dd06c6
commit b08a873811
2 changed files with 25 additions and 18 deletions

View file

@ -7,7 +7,7 @@
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"fidget.nvim": { "branch": "legacy", "commit": "2f7c08f45639a64a5c0abcf67321d52c3f499ae6" }, "fidget.nvim": { "branch": "legacy", "commit": "2f7c08f45639a64a5c0abcf67321d52c3f499ae6" },
"indent-blankline.nvim": { "branch": "master", "commit": "9637670896b68805430e2f72cf5d16be5b97a22a" }, "indent-blankline.nvim": { "branch": "master", "commit": "12e92044d313c54c438bd786d11684c88f6f78cd" },
"lazy.nvim": { "branch": "main", "commit": "28126922c9b54e35a192ac415788f202c3944c9f" }, "lazy.nvim": { "branch": "main", "commit": "28126922c9b54e35a192ac415788f202c3944c9f" },
"lspkind-nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" }, "lspkind-nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
"lualine.nvim": { "branch": "master", "commit": "7d131a8d3ba5016229e8a1d08bf8782acea98852" }, "lualine.nvim": { "branch": "master", "commit": "7d131a8d3ba5016229e8a1d08bf8782acea98852" },

View file

@ -1,25 +1,32 @@
local M = { 'lukas-reineke/indent-blankline.nvim' } local M = { 'lukas-reineke/indent-blankline.nvim' }
M.keys = {
{ '<leader>si', '<cmd>IndentBlanklineToggle<cr>' },
}
M.lazy = false -- trows an error when lazy loading
local chars = { '', '¦', '', '', '', '', '', '', '', '' }
local show_first_level = false
M.config = function() M.config = function()
require('indent_blankline').setup { require('ibl').setup {
enabled = false, enabled = false,
use_treesitter = true, indent = {
show_first_indent_level = show_first_level, char = '',
show_current_context = true, },
show_trailing_blankline_indent = false, scope = {
char_list = chars, char = '',
context_char_list = chars, enabled = false,
indent_level = #chars + (not show_first_level and 1 or 0), show_start = false,
show_end = false,
},
} }
end end
M.cmd = {
'IBLEnable',
'IBLDisable',
'IBLToggle',
'IBLEnableScope',
'IBLDisableScope',
'IBLToggleScope',
}
M.keys = {
{ '<leader>si', '<cmd>IBLToggle<cr>' },
{ '<leader>so', '<cmd>IBLToggleScope<cr>' },
}
return M return M