nvim: Add indent-blankline plugin
This commit is contained in:
parent
e18d158a8f
commit
f7c97d8c9c
3 changed files with 30 additions and 0 deletions
|
@ -26,3 +26,4 @@ require("plugins.lsp.lspconfig")
|
|||
require("plugins.lsp.null-ls")
|
||||
require("plugins.leap")
|
||||
require("plugins.project")
|
||||
require("plugins.indent-blankline")
|
||||
|
|
|
@ -107,6 +107,9 @@ return packer.startup({
|
|||
-- schemastore for nvim
|
||||
use("b0o/schemastore.nvim")
|
||||
|
||||
-- indent guide lines
|
||||
use("lukas-reineke/indent-blankline.nvim")
|
||||
|
||||
if packer.bootstrap then
|
||||
require("packer").sync()
|
||||
end
|
||||
|
|
26
.config/nvim/lua/plugins/indent-blankline.lua
Normal file
26
.config/nvim/lua/plugins/indent-blankline.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
local status, indent_blankline = pcall(require, "indent_blankline")
|
||||
if not status then
|
||||
return
|
||||
end
|
||||
|
||||
vim.cmd([[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]])
|
||||
vim.cmd([[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]])
|
||||
vim.cmd([[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]])
|
||||
vim.cmd([[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]])
|
||||
vim.cmd([[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]])
|
||||
vim.cmd([[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]])
|
||||
|
||||
indent_blankline.setup({
|
||||
show_current_context = true,
|
||||
show_current_context_start = true,
|
||||
show_end_of_line = true,
|
||||
space_char_blankline = " ",
|
||||
char_highlight_list = {
|
||||
"IndentBlanklineIndent1",
|
||||
"IndentBlanklineIndent2",
|
||||
"IndentBlanklineIndent3",
|
||||
"IndentBlanklineIndent4",
|
||||
"IndentBlanklineIndent5",
|
||||
"IndentBlanklineIndent6",
|
||||
},
|
||||
})
|
Loading…
Add table
Reference in a new issue