mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
neovim: upgrade to the latest version of indent blank line, I think
This commit is contained in:
parent
61d532fa16
commit
29444ef2fe
2 changed files with 15 additions and 13 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue