-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.vim
91 lines (70 loc) · 2.09 KB
/
theme.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
"" Background theme
set termguicolors
let ayucolor="dark"
colorscheme ayu
"" CONFIGURE THE STARTIFY PLUGIN
let g:startify_session_dir = '~/.config/nvim/session'
let g:startify_files_number = 4
let g:startify_lists = [
\{ 'header': [' Sessions'], 'type': 'sessions' },
\{ 'header': [' MRU'. getcwd()], 'type': 'dir' },
\{ 'header': [' MRU DIR'], 'type': 'files' }
\]
let g:startify_custom_header =
\ startify#pad(split(system('fortune | cowsay -f moose'), '\n'))
set mouse=a
set number
" vim-airline
let g:airline_theme = 'jellybeans'
let g:airline#extensions#branch#enabled = 1
let g:airline#extensions#ale#enabled = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tagbar#enabled = 1
let g:airline#extensions#tabline#show_buffers = 0
let g:airline_skip_empty_sections = 1
" vim-airline
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline#extensions#tabline#left_sep = ''
let g:airline#extensions#tabline#left_alt_sep = ''
" powerline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ''
highlight clear SignColumn
" SET THE TAB LINE LIST
"let g:indentLine_char_list = ['|', '¦', '┆', '┊']
"let g:indentLine_enabled = 1
"let indentLine_char = '|'
let g:indentLine_showFirstIndentLevel = 1
let g:indentLine_setColors = 0
let g:indentLine_char_list = ['|', '¦', '┆', '┊']
" Wildmenu
set wildmode=list:longest
set hidden
let s:currentTheme='dark'
function! s:darkTheme()
colorscheme ayu
let g:airline_theme = 'jellybeans'
set background=dark
let s:currentTheme='dark'
endfunction
function! s:lightTheme()
colorscheme PaperColor
let g:airline_theme='papercolor'
set background=light
let s:currentTheme='light'
endfunction
function! s:toggleTheme()
if s:currentTheme == 'dark'
call s:lightTheme()
else
call s:darkTheme()
endif
endfunction
command! ToggleTheme call s:toggleTheme()