summaryrefslogtreecommitdiff
path: root/nvim/init.vim
diff options
context:
space:
mode:
authorZachIR <zachir@librem.one>2025-01-20 20:01:54 -0600
committerZachIR <zachir@librem.one>2025-01-20 20:01:54 -0600
commit7323f4c6482e5fe41b0b3af3bc486bb2e6188880 (patch)
treee168541549eb8469d24cc9cd81f588fef4c1f9f4 /nvim/init.vim
parentfde288bf3cf11cf040a5fe03b24aa62c4cb32af2 (diff)
parent8dd9c87d4d8c2f35f7ef26fe19d3330235abdfb7 (diff)
Merge branch 'master' into car
Diffstat (limited to 'nvim/init.vim')
-rw-r--r--nvim/init.vim19
1 files changed, 18 insertions, 1 deletions
diff --git a/nvim/init.vim b/nvim/init.vim
index d27d9d4..812bf3e 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -1,3 +1,20 @@
+set runtimepath^=$XDG_CONFIG_HOME/vim
+set runtimepath+=$XDG_DATA_HOME/vim
+set runtimepath+=$XDG_CONFIG_HOME/vim/after
+
+set packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim
+set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after
+
+let g:netrw_home = $XDG_DATA_HOME."/vim"
+call mkdir($XDG_DATA_HOME."/vim/spell", 'p')
+
+set backupdir=$XDG_STATE_HOME/vim/backup | call mkdir(&backupdir, 'p')
+set directory=$XDG_STATE_HOME/vim/swap | call mkdir(&directory, 'p')
+set undodir=$XDG_STATE_HOME/vim/undo | call mkdir(&undodir, 'p')
+set viewdir=$XDG_STATE_HOME/vim/view | call mkdir(&viewdir, 'p')
+
+if !has('nvim') | set viminfofile=$XDG_STATE_HOME/vim/viminfo | endif
+
" vimplugs {{{
call plug#begin('~/.config/nvim/plugged')
" colorschemes {{{
@@ -45,7 +62,7 @@ set showmatch " Highlight matching brace
set number
set relativenumber
-colorscheme 256-grayvim
+colorscheme Dark2
set hlsearch " Highlight all search results
set smartcase " Enable smart-case search