LucasTavaresA/simpleIndentGuides.nvim

github github
formattingindent
stars 10
issues 0
subscribers 1
forks 0
CREATED

2022-11-07

UPDATED

last year


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("โ”Š", "ยท")