add keymap to allow toggling indentation guides on/off
This commit is contained in:
parent
8b1e729b58
commit
00f8a43580
|
@ -5,6 +5,11 @@ return {
|
|||
-- See `:help ibl`
|
||||
main = 'ibl',
|
||||
opts = function()
|
||||
vim.keymap.set('n', '<leader>ti', function()
|
||||
local enabled = require('ibl.config').get_config(0).enabled
|
||||
require('ibl').setup_buffer(0, { enabled = not enabled })
|
||||
end, { desc = '[T]oggle [I]ndentation Guides' })
|
||||
|
||||
return {
|
||||
exclude = {
|
||||
filetypes = {
|
||||
|
|
Loading…
Reference in a new issue