diff --git a/nvim/colors.vimrc b/nvim/colors.vimrc index efe8289..1b31a75 100644 --- a/nvim/colors.vimrc +++ b/nvim/colors.vimrc @@ -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 diff --git a/nvim/lua/indent.lua b/nvim/lua/indent.lua new file mode 100644 index 0000000..361b3de --- /dev/null +++ b/nvim/lua/indent.lua @@ -0,0 +1,12 @@ +require("indent_blankline").setup { + space_char_blankline = " ", + context_highlight_list = { + "IndentBlanklineContext1", + "IndentBlanklineContext2", + "IndentBlanklineContext3", + "IndentBlanklineContext4", + "IndentBlanklineContext5", + "IndentBlanklineContext6", + }, + show_current_context = true, +} diff --git a/nvim/plugins.vimrc b/nvim/plugins.vimrc index 10fd819..5fb824d 100644 --- a/nvim/plugins.vimrc +++ b/nvim/plugins.vimrc @@ -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' } diff --git a/vimrc b/vimrc index 1d7fed8..8f99cde 100644 --- a/vimrc +++ b/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