From cb2d167c47e7b7e58c1eb1c419850a5e76f3a36b Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 19 Oct 2023 11:31:29 -0500 Subject: Big nvim config changes Use tabs instead of spaces by default, change the colorscheme to SlateDark, and set indent spacing to 4. Also, don't auto preview or auto :make LaTeX documents. --- nvim/init.vim | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 080625e..9b952d3 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -42,31 +42,30 @@ set showmatch " Highlight matching brace set number set relativenumber -colorscheme BlackSea +"colorscheme CandyPaper +colorscheme SlateDark -set hlsearch " Highlight all search results -set smartcase " Enable smart-case search -set incsearch " Searches for strings incrementally +set hlsearch " Highlight all search results +set smartcase " Enable smart-case search +set incsearch " Searches for strings incrementally -set expandtab " Use spaces instead of tabs -set shiftwidth=2 " Number of auto-indent spaces -set smartindent " Enable smart-indent -set smarttab " Enable smart-tabs -set softtabstop=2 " Number of spaces per Tab +set noexpandtab " Use spaces instead of tabs +set shiftwidth=4 " Number of auto-indent spaces +set smartindent " Enable smart-indent +set nosmarttab " Enable smart-tabs +"set softtabstop=2 " Number of spaces per Tab +set tabstop=4 + "" Advanced -set ruler " Show row and column ruler information -set undolevels=1000 " Number of undo levels +set ruler " Show row and column ruler information +set undolevels=1000 " Number of undo levels set backspace=indent,eol,start " Backspace behaviour filetype plugin indent on "" GUI Config set guifont=mononoki\ Nerd\ Font\ Mono:h12 -hi Normal guibg=NONE ctermbg=NONE -hi NonText guibg=NONE ctermbg=NONE -set background=dark - set foldmethod=marker set conceallevel=2 @@ -187,11 +186,17 @@ autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif " custom augroup {{{ augroup custom autocmd! - au BufEnter *.tex :LLPStartPreview + " au BufEnter *.tex :LLPStartPreview au BufEnter *.md :set textwidth=80 au BufEnter *.ms :set textwidth=80 + " au BufEnter *.c :colo DevC++ + " au BufEnter *.h :colo DevC++ + " au BufEnter *.cc :colo DevC++ + " au BufEnter *.hh :colo DevC++ + " au BufEnter *.cpp :colo DevC++ + " au BufEnter *.hpp :colo DevC++ au BufWritePost init.vim :source % - au BufWritePost *.tex :make + " au BufWritePost *.tex :make au BufWritePost *sxhkdrc* :!pkill -USR1 -x sxhkd au BufWritePost .Xresources :!xrdb ~/.Xresources au BufWritePost .gitignore :!git add .gitignore -- cgit v1.2.3