neovim: upgrade to the latest version of indent blank line, I think

This commit is contained in:
JesseBot 2023-09-30 13:40:40 +02:00
parent 61d532fa16
commit 29444ef2fe
2 changed files with 15 additions and 13 deletions

View file

@ -12,20 +12,21 @@ vim.opt.autoindent = true
-- Also load indent files, to automatically do language-dependent indenting.
-- filetype plugin indent on
-- from https://github.com/lukas-reineke/indent-blankline.nvim#screenshots
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#47476c gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent2 guifg=#5b5b8b gui=nocombine]]
local highlight = {
"DarkBlueGray",
"BlueGray"
}
vim.opt.list = true
-- add a dot in blank spaces for indents
-- vim.opt.listchars:append "space:⋅"
local hooks = require "ibl.hooks"
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "DarkBlueGray", { fg = "#47476c" })
vim.api.nvim_set_hl(0, "BlueGray", { fg = "#5b5b8b" })
end)
require("ibl").setup {
indent = { highlight = highlight },
require("indent_blankline").setup {
space_char_blankline = " ",
char_highlight_list = {
"IndentBlanklineIndent1",
"IndentBlanklineIndent2",
},
-- :echo &filetype
filetype_exclude = {
"dashboard"

View file

@ -216,7 +216,8 @@ local plugins = {
},
-- add visual lines for indentation
{
"lukas-reineke/indent-blankline.nvim"
"lukas-reineke/indent-blankline.nvim",
main = "ibl"
},
-- because indenting is still broken in treesitter for python
-- ref: https://github.com/nvim-treesitter/nvim-treesitter/issues/1136