Home

Awesome

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("┊", "·")