summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-10-19 11:31:29 -0500
committerzachir <zachir@librem.one>2023-10-19 11:37:54 -0500
commitfd993bf7c55beea099b2a146be102137b94593fe (patch)
tree4284fad05c4d934706048c703dd8f398dbbf28e8
parenta693e7f975efb9b382fce871b7b5384a83d0f837 (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.
-rw-r--r--nvim/init.vim39
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