mirror of https://gitlab.com/baco/dotconf.git
feat(Neovim/vim): Set VSCode Dark+ as default colorscheme
Set in both editors the VSCode theme Dark+ variant. Each editor uses a plugin built specifically for it, because Neovim's is written in Lua and Vim's doesn't provide TreeSitter support.
This commit is contained in:
parent
720010881b
commit
6d89f99c14
|
@ -15,3 +15,11 @@ let g:onedark_config = {'transparent': v:false}
|
|||
if exists('g:colors_name') && g:colors_name == 'onedark'
|
||||
syntax reset
|
||||
endif
|
||||
if exists('g:colors_name') && g:colors_name == 'vscode'
|
||||
let g:vscode_transparent = v:false
|
||||
lua <<EOF
|
||||
local c = require('vscode.colors').get_colors()
|
||||
require('vscode').setup({ group_overrides = { Normal = { fg=c.vscFront, bg=c.vscBack } } })
|
||||
require('vscode').load()
|
||||
EOF
|
||||
endif
|
||||
|
|
|
@ -64,6 +64,10 @@ let g:aldmeris_termcolors = 'tango'
|
|||
let g:onedark_config = {'transparent': v:true}
|
||||
let g:onedark_terminal_italics = v:true
|
||||
|
||||
let g:vscode_style = 'dark'
|
||||
let g:vscode_transparent = v:true
|
||||
let g:vscode_italic_comment = v:true
|
||||
|
||||
" onedark.vim override: Don't set a background color when running in a
|
||||
" terminal; just use the terminal's background color
|
||||
if has('autocmd') && !has('gui_running')
|
||||
|
@ -74,13 +78,17 @@ if has('autocmd') && !has('gui_running')
|
|||
augroup END
|
||||
endif
|
||||
|
||||
silent! colorscheme onedark
|
||||
silent! colorscheme vscode
|
||||
|
||||
if exists('g:colors_name') && g:colors_name == 'onedark'
|
||||
if exists('g:colors_name') && (g:colors_name == 'onedark'
|
||||
\ || g:colors_name == 'vscode')
|
||||
if has('termguicolors')
|
||||
set termguicolors
|
||||
endif
|
||||
endif
|
||||
if exists('g:colors_name') && g:colors_name == 'vscode'
|
||||
let g:airline_theme = 'codedark' " vscode.nvim doesn't provide one
|
||||
endif
|
||||
|
||||
" Misc
|
||||
let g:airline#extensions#tabline#enabled = v:true
|
||||
|
|
|
@ -55,6 +55,8 @@ let g:aldmeris_termcolors = 'tango'
|
|||
|
||||
let g:onedark_terminal_italics = v:true
|
||||
|
||||
let g:codedark_italics = v:true
|
||||
|
||||
" onedark.vim override: Don't set a background color when running in a
|
||||
" terminal; just use the terminal's background color
|
||||
if has('autocmd') && !has('gui_running')
|
||||
|
@ -63,12 +65,13 @@ if has('autocmd') && !has('gui_running')
|
|||
autocmd ColorScheme onedark silent!
|
||||
\ call onedark#extend_highlight('Normal', {'bg': {'gui': 'NONE'}})
|
||||
augroup END
|
||||
let g:codedark_transparent = v:true
|
||||
endif
|
||||
|
||||
packadd onedark.vim " Fix because Vim ignores the start dir for this package
|
||||
silent! colorscheme onedark
|
||||
silent! colorscheme codedark
|
||||
|
||||
if exists('g:colors_name') && g:colors_name == 'onedark'
|
||||
if exists('g:colors_name') && (g:colors_name == 'onedark'
|
||||
\ || g:colors_name == 'codedark')
|
||||
if has('termguicolors')
|
||||
set termguicolors
|
||||
if !empty($TMUX) && (&term =~ 'tmux' || &term =~ 'screen')
|
||||
|
|
Loading…
Reference in New Issue