You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
772 B
42 lines
772 B
2 years ago
|
vim.g.indent_blankline_use_treesitter = true
|
||
|
vim.g.indent_blankline_filetype_exclude = {
|
||
|
"help",
|
||
|
"dashboard",
|
||
|
"dashpreview",
|
||
|
"coc-explorer",
|
||
|
"startify",
|
||
|
"vista",
|
||
|
"sagahover",
|
||
|
"lspinfo",
|
||
|
}
|
||
|
|
||
|
vim.opt.list = true
|
||
|
vim.opt.listchars:append("space:⋅")
|
||
|
vim.opt.listchars:append("eol:↴")
|
||
|
|
||
|
require("indent_blankline").setup({
|
||
|
space_char_blankline = " ",
|
||
|
show_current_context = true,
|
||
|
show_current_context_start = true,
|
||
|
})
|
||
|
|
||
|
local wk = require("which-key")
|
||
|
|
||
|
wk.register({
|
||
|
t = {
|
||
|
i = {
|
||
|
function()
|
||
|
vim.cmd("IndentBlanklineToggle!")
|
||
|
if vim.g.indent_blankline_enabled then
|
||
|
vim.opt.list = true
|
||
|
else
|
||
|
vim.opt.list = false
|
||
|
end
|
||
|
end,
|
||
|
"Indent guides",
|
||
|
},
|
||
|
},
|
||
|
}, {
|
||
|
prefix = "<leader>",
|
||
|
})
|