LucasTavaresA/simpleIndentGuides.nvim

github github
pluginformattingindent
star 6
alert-circle 0
users 1
git-branch 0
CREATED

2022-11-07

UPDATED

24 days ago


simpleIndentGuides.nvim

Indentation guides using the builtin shiftwidth and listchars variables.

print_07_02:48

Installation

You have to use setup()

packer.nvim:

use {
  'lucastavaresa/simpleIndentGuides.nvim',
  config = function()
    vim.opt.list = true -- enable in all buffers
    require("simpleIndentGuides").setup()
  end
}

Customization

To disable the guide in specific buffers

vim.api.nvim_create_autocmd("FileType", {
  pattern = { "markdown", "org", "txt", "norg" },
  command = "setlocal nolist",
})

Setup can receive one or two characters, the first one is the guide, the second string is the padding between the guides

The default guide is โ”‚

Example:

require("simpleIndentGuides").setup("โ”Š")

Another example:

require("simpleIndentGuides").setup("โ”Š", "ยท")