diff options
author | zachir <zachir@librem.one> | 2023-10-19 11:31:29 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-10-19 11:31:29 -0500 |
commit | cb2d167c47e7b7e58c1eb1c419850a5e76f3a36b (patch) | |
tree | 7db8e9720fa7b5c570cfba78342d7f3df55a3a66 /nvim | |
parent | 06a745354d66d3563332685130de7d844441582c (diff) |
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.
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/init.vim | 39 |
1 files 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 |