Add indent blanklines plugin and config to neovim
This commit is contained in:
		| @@ -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
									
								
							
							
						
						
									
										12
									
								
								nvim/lua/indent.lua
									
									
									
									
									
										Normal 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, | ||||
| } | ||||
| @@ -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
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								vimrc
									
									
									
									
									
								
							| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user