summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2022-02-26 20:13:18 +0100
committerDaniel Weipert <code@drogueronin.de>2023-10-30 09:52:23 +0100
commit00b3c645dc503d5f5191c9508df0b5e81093de55 (patch)
treeb5481fd9051a1bffa2853c186c5a0c05e76eb389
parentc6e592473f2853e4d744a2827570eaec739f0655 (diff)
[nvim] add and configure indent-blankline
-rw-r--r--.config/nvim/init.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index d41d485..8dfe515 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -17,6 +17,8 @@ Plug 'airblade/vim-gitgutter'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
+Plug 'lukas-reineke/indent-blankline.nvim'
+
Plug 'iamcco/markdown-preview.nvim', {'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
" if install fails do `:call mkdp#util#install() manually`
@@ -41,6 +43,10 @@ let mapleader=" "
set shiftwidth=2
set tabstop=2
+set expandtab
+
+set list
+set listchars=tab:\ \ ,trail:-
set mouse=a
set splitright
@@ -54,6 +60,7 @@ augroup numbertoggle
augroup END
colorscheme darcula
+set termguicolors
hi Normal guibg=NONE ctermbg=NONE
@@ -104,6 +111,20 @@ require('nvim-treesitter.configs').setup {
EOF
+" Indent Blankline
+lua <<EOF
+vim.cmd [[highlight IndentBlanklineChar guifg=#303030 gui=nocombine]]
+vim.cmd [[highlight IndentBlanklineContextChar guifg=#404040 gui=nocombine]]
+
+require('indent_blankline').setup {
+ use_treesitter = true,
+ show_first_indent_level = false,
+ show_trailing_blankline_indent = false,
+ show_current_context = true,
+}
+EOF
+
+
" LSP
lua <<EOF