Add indent blanklines plugin and config to neovim

This commit is contained in:
Daniel Lynn 2021-09-15 12:39:08 -05:00
parent 38403d6182
commit 6a9d041bd5
Signed by: daniel
GPG Key ID: 28496A140E180A9D
4 changed files with 26 additions and 1 deletions

View File

@ -37,6 +37,12 @@ function! s:sonokai_custom() abort
call sonokai#highlight('RedSign', l:palette.red, l:palette.bg1)
call sonokai#highlight('YellowSign', l:palette.yellow, l:palette.bg1)
call sonokai#highlight('CocHintSign', l:palette.grey, l:palette.none, 'italic')
call sonokai#highlight('IndentBlanklineContext1', l:palette.red, l:palette.none)
call sonokai#highlight('IndentBlanklineContext2', l:palette.yellow, l:palette.none)
call sonokai#highlight('IndentBlanklineContext3', l:palette.green, l:palette.none)
call sonokai#highlight('IndentBlanklineContext4', l:palette.blue, l:palette.none)
call sonokai#highlight('IndentBlanklineContext5', l:palette.purple, l:palette.none)
call sonokai#highlight('IndentBlanklineContext6', l:palette.orange, l:palette.none)
endfunction
augroup CustomColors

12
nvim/lua/indent.lua Normal file
View File

@ -0,0 +1,12 @@
require("indent_blankline").setup {
space_char_blankline = " ",
context_highlight_list = {
"IndentBlanklineContext1",
"IndentBlanklineContext2",
"IndentBlanklineContext3",
"IndentBlanklineContext4",
"IndentBlanklineContext5",
"IndentBlanklineContext6",
},
show_current_context = true,
}

View File

@ -4,6 +4,7 @@ Plug 'honza/vim-snippets'
Plug 'jiangmiao/auto-pairs'
Plug 'leafgarland/typescript-vim', { 'for': 'typescript' }
Plug 'leafoftree/vim-svelte-plugin', { 'for': 'svelte' }
Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'posva/vim-vue', { 'for': 'vue' }
Plug 'ron-rs/ron.vim', { 'for': 'ron' }

8
vimrc
View File

@ -18,7 +18,8 @@ set hidden
set history=50
set incsearch
set laststatus=2
set listchars=tab:▸\ ,eol,nbsp:␣,trail:•,space:.,extends:→,precedes:←
set listchars=tab:▸\ ,eol:↴,nbsp:␣,trail:•,space:⋅,extends:→,precedes:←
set list
set modelines=0
set mouse=a
set nobackup
@ -87,6 +88,11 @@ if filereadable(expand("~/.config/nvim/tmuxline.vimrc"))
source ~/.config/nvim/tmuxline.vimrc
endif
" Indent setup
if filereadable(expand("~/.config/nvim/lua/indent.lua"))
lua require('indent')
endif
" Git setup
if filereadable(expand("~/.config/nvim/git.vimrc"))
source ~/.config/nvim/git.vimrc