Neovim: Enable indent-blankline
This commit is contained in:
parent
2be99922f4
commit
5789851be9
3 changed files with 10 additions and 16 deletions
|
@ -10,4 +10,4 @@ require 'pluginconf.lsp'
|
||||||
require 'pluginconf.completion'
|
require 'pluginconf.completion'
|
||||||
require 'pluginconf.treesitter'
|
require 'pluginconf.treesitter'
|
||||||
require 'pluginconf.telescope'
|
require 'pluginconf.telescope'
|
||||||
-- require 'pluginconf.indent-blankline'
|
require 'pluginconf.indent-blankline'
|
||||||
|
|
|
@ -1,15 +1,9 @@
|
||||||
require('indent_blankline').setup {char = " ", filetype_exclude = {'help', 'terminal'}}
|
vim.opt.list = true
|
||||||
|
vim.opt.listchars:append("space:⋅")
|
||||||
|
vim.opt.listchars:append("eol:↴")
|
||||||
|
|
||||||
-- define the highlight groups with only background colors (or leave odd empty to just show the normal background)
|
require("indent_blankline").setup {
|
||||||
vim.cmd [[highlight IndentOdd guifg=NONE guibg=NONE gui=nocombine]]
|
space_char_blankline = " ",
|
||||||
vim.cmd [[highlight IndentEven guifg=NONE guibg=#354254 gui=nocombine]]
|
show_current_context = true,
|
||||||
-- and then use the highlight groups
|
show_current_context_start = true,
|
||||||
vim.g.indent_blankline_char_highlight_list = {"IndentOdd", "IndentEven"}
|
}
|
||||||
vim.g.indent_blankline_space_char_highlight_list = {"IndentOdd", "IndentEven"}
|
|
||||||
|
|
||||||
-- don't show any characters
|
|
||||||
vim.g.indent_blankline_char = " "
|
|
||||||
vim.g.indent_blankline_space_char = " "
|
|
||||||
|
|
||||||
-- when using background, the trailing indent is not needed / looks wrong
|
|
||||||
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ require('packer').startup(function()
|
||||||
use 'tpope/vim-fugitive'
|
use 'tpope/vim-fugitive'
|
||||||
|
|
||||||
-- Indent characters
|
-- Indent characters
|
||||||
-- use "lukas-reineke/indent-blankline.nvim"
|
use "lukas-reineke/indent-blankline.nvim"
|
||||||
|
|
||||||
-- Tree explorer
|
-- Tree explorer
|
||||||
use {'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons'}
|
use {'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons'}
|
||||||
|
|
Loading…
Reference in a new issue