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`
|
-- See `:help ibl`
|
||||||
main = 'ibl',
|
main = 'ibl',
|
||||||
opts = function()
|
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 {
|
return {
|
||||||
exclude = {
|
exclude = {
|
||||||
filetypes = {
|
filetypes = {
|
||||||
|
|
Loading…
Reference in a new issue