-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
46 lines (39 loc) · 1.02 KB
/
init.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
call plug#begin('~/.local/share/nvim/plugged')
source $HOME/.config/nvim/infra.vim
source $HOME/.config/nvim/ux.vim
source $HOME/.config/nvim/style.vim
source $HOME/.config/nvim/modules/java.vim
source $HOME/.config/nvim/modules/kotlin.vim
source $HOME/.config/nvim/modules/python.vim
source $HOME/.config/nvim/modules/go/init.vim
source $HOME/.config/nvim/modules/go/ux.vim
call plug#end()
" CONFIGURE theme monokai
colorscheme monokai
function! Light()
echom "set bg=light"
set bg=light
colorscheme off
set list
endfunction
function! Dark()
echom "set bg=dark"
set bg=dark
colorscheme monokai
"darcula fix to hide the indents:
"set nolist
endfunction
function! ToggleLightDark()
if &bg ==# "light"
call Dark()
else
call Light()
endif
endfunction
" toggle colors to optimize based on light or dark background
nnoremap <leader>c :call ToggleLightDark()<CR>
" =====================================
" Init
" =====================================
silent call Dark()
autocmd VimEnter * wincmd p