mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 13:34:39 +01:00
Compare commits
2 commits
8171a831b0
...
b5237a148c
| Author | SHA1 | Date | |
|---|---|---|---|
| b5237a148c | |||
| a365aa7fa0 |
2 changed files with 15 additions and 9 deletions
|
|
@ -24,6 +24,7 @@ Plug 'vimpostor/vim-lumen'
|
||||||
" External tool integration
|
" External tool integration
|
||||||
Plug 'tpope/vim-bundler' " bundler + gem-ctags
|
Plug 'tpope/vim-bundler' " bundler + gem-ctags
|
||||||
Plug 'tpope/vim-fugitive' " git
|
Plug 'tpope/vim-fugitive' " git
|
||||||
|
Plug 'airblade/vim-gitgutter' " git gutter
|
||||||
Plug 'jremmen/vim-ripgrep' " rg is the new ag is the new ack
|
Plug 'jremmen/vim-ripgrep' " rg is the new ag is the new ack
|
||||||
|
|
||||||
" UI extensions
|
" UI extensions
|
||||||
|
|
|
||||||
23
vimrc
23
vimrc
|
|
@ -56,14 +56,7 @@ function! DetectMode()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ApplyMode()
|
function! UseTermBG()
|
||||||
" set theme
|
|
||||||
if &background ==# 'light'
|
|
||||||
colorscheme nofrils-light
|
|
||||||
else
|
|
||||||
colorscheme nofrils-dark
|
|
||||||
endif
|
|
||||||
|
|
||||||
"use terminal background
|
"use terminal background
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
hi Normal ctermbg=none guibg=none
|
hi Normal ctermbg=none guibg=none
|
||||||
|
|
@ -78,6 +71,17 @@ function! ApplyMode()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! ApplyMode()
|
||||||
|
" set theme
|
||||||
|
if &background ==# 'light'
|
||||||
|
colorscheme habamax
|
||||||
|
else
|
||||||
|
colorscheme habamax
|
||||||
|
endif
|
||||||
|
|
||||||
|
call UseTermBG()
|
||||||
|
endfunction
|
||||||
|
|
||||||
" Terminal behavior and appearance
|
" Terminal behavior and appearance
|
||||||
if !has('gui_running')
|
if !has('gui_running')
|
||||||
set showtabline=1 "automatic tab bar
|
set showtabline=1 "automatic tab bar
|
||||||
|
|
@ -87,7 +91,8 @@ if !has('gui_running')
|
||||||
end
|
end
|
||||||
|
|
||||||
if $SSH_CLIENT
|
if $SSH_CLIENT
|
||||||
colorscheme smpl
|
colorscheme habamax
|
||||||
|
call UseTermBG()
|
||||||
else
|
else
|
||||||
call DetectMode()
|
call DetectMode()
|
||||||
call ApplyMode()
|
call ApplyMode()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue