Skip to content

Commit 7a52f66

Browse files
meckarcticicestudiosvengreb
authored
Add support for vim-clap (nordtheme#178)
Added basic support for vim-clap [1], a modern and performant generic finder and dispatcher for Vim and NeoVim. [1]: https://github.com/liuchengxu/vim-clap nordthemeGH-178 Co-authored-by: Arctic Ice Studio <[email protected]> Co-authored-by: Sven Greb <[email protected]>
1 parent 1bd44ad commit 7a52f66

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

colors/nord.vim

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@ call s:hi("LSPDiagnosticsError" , s:nord11_gui, "", s:nord11_term, "", "", "")
573573
call s:hi("LSPDiagnosticsInformation" , s:nord8_gui, "", s:nord8_term, "", "", "")
574574
call s:hi("LSPDiagnosticsHint" , s:nord10_gui, "", s:nord10_term, "", "", "")
575575

576-
577576
" GitGutter
578577
" > airblade/vim-gitgutter
579578
call s:hi("GitGutterAdd", s:nord14_gui, "", s:nord14_term, "", "", "")
@@ -609,6 +608,36 @@ hi! link NERDTreeHelp Comment
609608
hi! link CtrlPMatch Keyword
610609
hi! link CtrlPBufferHid Normal
611610

611+
" vim-clap
612+
" > liuchengxu/vim-clap
613+
call s:hi("ClapDir", s:nord4_gui, "", "", "", "", "")
614+
call s:hi("ClapDisplay", s:nord4_gui, s:nord1_gui, "", s:nord1_term, "", "")
615+
call s:hi("ClapFile", s:nord4_gui, "", "", "NONE", "", "")
616+
call s:hi("ClapMatches", s:nord8_gui, "", s:nord8_term, "", "", "")
617+
call s:hi("ClapNoMatchesFound", s:nord13_gui, "", s:nord13_term, "", "", "")
618+
call s:hi("ClapSelected", s:nord7_gui, "", s:nord7_term, "", s:bold, "")
619+
call s:hi("ClapSelectedSign", s:nord9_gui, "", s:nord9_term, "", "", "")
620+
621+
let s:clap_matches = [
622+
\ [s:nord8_gui, s:nord8_term] ,
623+
\ [s:nord9_gui, s:nord9_term] ,
624+
\ [s:nord10_gui, s:nord10_term] ,
625+
\ ]
626+
for s:nord_clap_match_i in range(1,12)
627+
let clap_match_color = s:clap_matches[s:nord_clap_match_i % len(s:clap_matches) - 1]
628+
call s:hi("ClapMatches" . s:nord_clap_match_i, clap_match_color[0], "", clap_match_color[1], "", "", "")
629+
call s:hi("ClapFuzzyMatches" . s:nord_clap_match_i, clap_match_color[0], "", clap_match_color[1], "", "", "")
630+
endfor
631+
unlet s:nord_clap_match_i
632+
633+
hi! link ClapCurrentSelection PmenuSel
634+
hi! link ClapCurrentSelectionSign ClapSelectedSign
635+
hi! link ClapInput Pmenu
636+
hi! link ClapPreview Pmenu
637+
hi! link ClapProviderAbout ClapDisplay
638+
hi! link ClapProviderColon Type
639+
hi! link ClapProviderId Type
640+
612641
" vim-plug
613642
" > junegunn/vim-plug
614643
call s:hi("plugDeleted", s:nord11_gui, "", "", s:nord11_term, "", "")

0 commit comments

Comments
 (0)