diff options
author | zachir <zachir@librem.one> | 2023-10-19 11:31:29 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-10-19 21:58:06 -0500 |
commit | d815859764360bbf84ddd454701a0dda7d5072d3 (patch) | |
tree | e59e6e2765f68b99c36ab78491ff9a867f460e64 /nvim | |
parent | b6399d757bcec00a07b0da5da64a90d324ec929b (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 |