diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index f0f56c6..b730643 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -7,7 +7,7 @@ "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "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" }, "lspkind-nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" }, "lualine.nvim": { "branch": "master", "commit": "7d131a8d3ba5016229e8a1d08bf8782acea98852" }, diff --git a/config/nvim/lua/fschauen/plugins/indent-blankline.lua b/config/nvim/lua/fschauen/plugins/indent-blankline.lua index f1b6c63..a8395c6 100644 --- a/config/nvim/lua/fschauen/plugins/indent-blankline.lua +++ b/config/nvim/lua/fschauen/plugins/indent-blankline.lua @@ -1,25 +1,32 @@ local M = { 'lukas-reineke/indent-blankline.nvim' } -M.keys = { - { 'si', 'IndentBlanklineToggle' }, -} - -M.lazy = false -- trows an error when lazy loading - -local chars = { '│', '¦', '┆', '┊', '┊', '┊', '┊', '┊', '┊', '┊' } -local show_first_level = false - M.config = function() - require('indent_blankline').setup { + require('ibl').setup { enabled = false, - use_treesitter = true, - show_first_indent_level = show_first_level, - show_current_context = true, - show_trailing_blankline_indent = false, - char_list = chars, - context_char_list = chars, - indent_level = #chars + (not show_first_level and 1 or 0), + indent = { + char = '▏', + }, + scope = { + char = '▎', + enabled = false, + show_start = false, + show_end = false, + }, } end +M.cmd = { + 'IBLEnable', + 'IBLDisable', + 'IBLToggle', + 'IBLEnableScope', + 'IBLDisableScope', + 'IBLToggleScope', +} + +M.keys = { + { 'si', 'IBLToggle' }, + { 'so', 'IBLToggleScope' }, +} + return M