2018-05-24 02:52:06 +00:00
|
|
|
if dracula#should_abort()
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2018-04-22 22:47:04 +00:00
|
|
|
" Fzf: {{{
|
|
|
|
if exists('g:loaded_fzf') && ! exists('g:fzf_colors')
|
|
|
|
let g:fzf_colors = {
|
2019-05-25 21:50:22 +00:00
|
|
|
\ 'fg': ['fg', 'Normal'],
|
|
|
|
\ 'bg': ['bg', 'Normal'],
|
|
|
|
\ 'hl': ['fg', 'Search'],
|
|
|
|
\ 'fg+': ['fg', 'Normal'],
|
|
|
|
\ 'bg+': ['bg', 'Normal'],
|
|
|
|
\ 'hl+': ['fg', 'DraculaOrange'],
|
|
|
|
\ 'info': ['fg', 'DraculaPurple'],
|
|
|
|
\ 'border': ['fg', 'Ignore'],
|
|
|
|
\ 'prompt': ['fg', 'DraculaGreen'],
|
|
|
|
\ 'pointer': ['fg', 'Exception'],
|
|
|
|
\ 'marker': ['fg', 'Keyword'],
|
|
|
|
\ 'spinner': ['fg', 'Label'],
|
|
|
|
\ 'header': ['fg', 'Comment'],
|
|
|
|
\}
|
2018-04-22 22:47:04 +00:00
|
|
|
endif
|
2018-05-02 18:42:59 +00:00
|
|
|
"}}}
|
2018-10-22 18:48:35 +00:00
|
|
|
" ALE: {{{
|
|
|
|
if exists('g:ale_enabled')
|
2019-04-30 15:47:29 +00:00
|
|
|
hi! link ALEError DraculaErrorLine
|
|
|
|
hi! link ALEWarning DraculaWarnLine
|
|
|
|
hi! link ALEInfo DraculaInfoLine
|
2018-10-22 18:48:35 +00:00
|
|
|
|
2019-04-30 15:47:29 +00:00
|
|
|
hi! link ALEErrorSign DraculaRed
|
|
|
|
hi! link ALEWarningSign DraculaOrange
|
|
|
|
hi! link ALEInfoSign DraculaCyan
|
|
|
|
|
|
|
|
hi! link ALEVirtualTextError Comment
|
|
|
|
hi! link ALEVirtualTextWarning Comment
|
2018-10-22 18:48:35 +00:00
|
|
|
endif
|
|
|
|
" }}}
|
2019-03-20 19:37:08 +00:00
|
|
|
" CtrlP: {{{
|
|
|
|
if exists('g:loaded_ctrlp')
|
2019-05-25 21:50:22 +00:00
|
|
|
hi! link CtrlPMatch IncSearch
|
2019-03-20 19:37:08 +00:00
|
|
|
hi! link CtrlPBufferHid Normal
|
|
|
|
endif
|
|
|
|
" }}}
|
2021-03-17 12:44:53 +00:00
|
|
|
" GitGutter / gitsigns: {{{
|
|
|
|
if exists('g:loaded_gitgutter')
|
|
|
|
hi! link GitGutterAdd DiffAdd
|
|
|
|
hi! link GitGutterChange DiffChange
|
|
|
|
hi! link GitGutterDelete DiffDelete
|
|
|
|
endif
|
|
|
|
if has('nvim-0.5') && luaeval("pcall(require, 'gitsigns')")
|
|
|
|
" https://github.com/lewis6991/gitsigns.nvim requires nvim > 0.5
|
|
|
|
" has('nvim-0.5') checks >= 0.5, so this should be future-proof.
|
|
|
|
hi! link GitSignsAdd DiffAdd
|
|
|
|
hi! link GitSignsAddLn DiffAdd
|
|
|
|
hi! link GitSignsAddNr DiffAdd
|
|
|
|
hi! link GitSignsChange DiffChange
|
|
|
|
hi! link GitSignsChangeLn DiffChange
|
|
|
|
hi! link GitSignsChangeNr DiffChange
|
|
|
|
hi! link GitSignsDelete DiffDelete
|
|
|
|
hi! link GitSignsDeleteLn DiffDelete
|
|
|
|
hi! link GitSignsDeleteNr DiffDelete
|
|
|
|
endif
|
|
|
|
" }}}
|
2021-03-05 14:33:18 +00:00
|
|
|
" Tree-sitter: {{{
|
2021-08-06 15:50:31 +00:00
|
|
|
" The nvim-treesitter library defines many global highlight groups that are
|
|
|
|
" linked to the regular vim syntax highlight groups. We only need to redefine
|
|
|
|
" those highlight groups when the defaults do not match the dracula
|
|
|
|
" specification.
|
|
|
|
" https://github.com/nvim-treesitter/nvim-treesitter/blob/master/plugin/nvim-treesitter.vim
|
2021-03-05 14:33:18 +00:00
|
|
|
if exists('g:loaded_nvim_treesitter')
|
|
|
|
" # Misc
|
|
|
|
hi! link TSPunctSpecial Special
|
|
|
|
" # Constants
|
|
|
|
hi! link TSConstMacro Macro
|
|
|
|
hi! link TSStringEscape Character
|
|
|
|
hi! link TSSymbol DraculaPurple
|
|
|
|
hi! link TSAnnotation DraculaYellow
|
|
|
|
hi! link TSAttribute DraculaGreenItalic
|
|
|
|
" # Functions
|
|
|
|
hi! link TSFuncBuiltin DraculaCyan
|
|
|
|
hi! link TSFuncMacro Function
|
|
|
|
hi! link TSParameter DraculaOrangeItalic
|
|
|
|
hi! link TSParameterReference DraculaOrange
|
|
|
|
hi! link TSField DraculaOrange
|
|
|
|
hi! link TSConstructor DraculaCyan
|
|
|
|
" # Keywords
|
|
|
|
hi! link TSLabel DraculaPurpleItalic
|
|
|
|
" # Variable
|
|
|
|
hi! link TSVariableBuiltin DraculaPurpleItalic
|
|
|
|
" # Text
|
|
|
|
hi! link TSStrong DraculaFgBold
|
|
|
|
hi! link TSEmphasis DraculaFg
|
|
|
|
hi! link TSUnderline Underlined
|
|
|
|
hi! link TSTitle DraculaYellow
|
|
|
|
hi! link TSLiteral DraculaYellow
|
|
|
|
hi! link TSURI DraculaYellow
|
2021-08-06 15:50:31 +00:00
|
|
|
" HTML and JSX tag attributes. By default, this group is linked to TSProperty,
|
|
|
|
" which in turn links to Identifer (white).
|
|
|
|
hi! link TSTagAttribute DraculaGreenItalic
|
2021-03-05 14:33:18 +00:00
|
|
|
endif
|
|
|
|
" }}}
|
2018-10-22 18:48:35 +00:00
|
|
|
|
2019-05-25 21:50:22 +00:00
|
|
|
" vim: fdm=marker ts=2 sts=2 sw=2 fdl=0:
|