mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-21 19:32:31 -05:00
Get things working properly on a linux vterm
This commit is contained in:
parent
5ebf040807
commit
5aa7a9c371
4 changed files with 34 additions and 29 deletions
2
init.vim
2
init.vim
|
@ -18,12 +18,10 @@
|
|||
let &runtimepath = printf("%s,%s/vim,%s/vim/after,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath)
|
||||
|
||||
"load colours
|
||||
if &term != "linux"
|
||||
runtime colors/palette.vim
|
||||
|
||||
"load colour scheme:
|
||||
colorscheme darkcloud
|
||||
endif
|
||||
|
||||
"load user config:
|
||||
runtime user.vim
|
||||
|
|
|
@ -61,9 +61,18 @@ endfun
|
|||
|
||||
"cursor
|
||||
call s:C("Cursor","",g:cDarkBg,"standout")
|
||||
|
||||
if &term != "linux"
|
||||
call s:C("CursorLineNr",g:cBlue,g:cLightBg,"bold")
|
||||
call s:C("CursorColumn","",g:cLightBg,"")
|
||||
call s:C("CursorLine","",g:cLightBg,"")
|
||||
call s:C("CursorLineNr",g:cBlue,g:cLightBg,"bold")
|
||||
else
|
||||
call s:C("CursorLineNr",g:cBlue,"","bold")
|
||||
call s:C("CursorColumn","","","")
|
||||
call s:C("CursorLine","","","")
|
||||
end
|
||||
|
||||
"line number
|
||||
call s:C("LineNr",g:cGray4,"","bold")
|
||||
|
||||
"selected text
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if has("gui_running") || &termguicolors
|
||||
if has("gui_running") || &term != "linux" && &termguicolors
|
||||
let g:cBlack = '#000000'
|
||||
let g:cWhite = '#ffffff'
|
||||
|
||||
|
@ -17,7 +17,7 @@ if has("gui_running") || &termguicolors
|
|||
|
||||
let g:cLightBg = '#303030'
|
||||
let g:cDarkBg = '#262626'
|
||||
elseif &t_Co >= 256
|
||||
elseif &term != "linux" && &t_Co >= 256
|
||||
let g:cBlack = '0' "#000000
|
||||
let g:cWhite = '15' "#ffffff
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ let g:lightline#ale#indicator_errors = "E:"
|
|||
let g:lightline#ale#indicator_ok = "OK"
|
||||
|
||||
"status bar config with and without powerline fonts (default: 0)
|
||||
if (g:enablepowerline == 1)
|
||||
if &term != "linux" && g:enablepowerline == 1
|
||||
let g:lightline.separator = { "left": "", "right": "" }
|
||||
let g:lightline.subseparator = { "left": "", "right": "" }
|
||||
else
|
||||
|
@ -99,7 +99,6 @@ endif
|
|||
"ligtline theme {{{
|
||||
let s:p = { "normal": {}, "inactive": {}, "insert": {}, "replace": {}, "visual": {}, "tabline": {} }
|
||||
|
||||
if &term != "linux"
|
||||
let g:lightline.colorscheme = "darkcloud"
|
||||
|
||||
let s:p.normal.left = [[ g:cBlue, g:cDarkBg ], [ g:cWhite, g:cLightBg ]]
|
||||
|
@ -121,5 +120,4 @@ endif
|
|||
let s:p.tabline.right = [[ g:cWhite, g:cDarkBg ]]
|
||||
|
||||
let g:lightline#colorscheme#darkcloud#palette = lightline#colorscheme#fill(s:p)
|
||||
endif
|
||||
"}}}
|
||||
|
|
Loading…
Reference in a new issue