From 84afb34cee29a0d95e221365ebe2e9753178a1e5 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Tue, 28 Jan 2025 11:05:04 +0100 Subject: [PATCH] added neovim config --- dot_config/nvim/colors/flattened_dark.vim | 325 ++++ dot_config/nvim/colors/flattened_light.vim | 314 ++++ dot_config/nvim/colors/tokyonight.vim | 1836 ++++++++++++++++++++ dot_config/nvim/dot_gitignore | 2 + dot_config/nvim/executable_run | 8 + dot_config/nvim/init.lua | 4 + dot_config/nvim/lua/config/cmp.lua | 74 + dot_config/nvim/lua/config/coq.lua | 28 + dot_config/nvim/lua/config/ctrlp.lua | 15 + dot_config/nvim/lua/config/fugitive.lua | 7 + dot_config/nvim/lua/config/gitgutter.lua | 3 + dot_config/nvim/lua/config/lspconfig.lua | 75 + dot_config/nvim/lua/config/nerdtree.lua | 30 + dot_config/nvim/lua/config/tagbar.lua | 12 + dot_config/nvim/lua/config/toggleterm.lua | 25 + dot_config/nvim/lua/config/treesitter.lua | 5 + dot_config/nvim/lua/keys.lua | 60 + dot_config/nvim/lua/plugins.lua | 212 +++ dot_config/nvim/lua/settings.lua | 59 + dot_config/nvim/lua/utils.lua | 11 + dot_config/nvim/plugin/.keep | 0 21 files changed, 3105 insertions(+) create mode 100644 dot_config/nvim/colors/flattened_dark.vim create mode 100644 dot_config/nvim/colors/flattened_light.vim create mode 100644 dot_config/nvim/colors/tokyonight.vim create mode 100644 dot_config/nvim/dot_gitignore create mode 100644 dot_config/nvim/executable_run create mode 100644 dot_config/nvim/init.lua create mode 100644 dot_config/nvim/lua/config/cmp.lua create mode 100644 dot_config/nvim/lua/config/coq.lua create mode 100644 dot_config/nvim/lua/config/ctrlp.lua create mode 100644 dot_config/nvim/lua/config/fugitive.lua create mode 100644 dot_config/nvim/lua/config/gitgutter.lua create mode 100644 dot_config/nvim/lua/config/lspconfig.lua create mode 100644 dot_config/nvim/lua/config/nerdtree.lua create mode 100644 dot_config/nvim/lua/config/tagbar.lua create mode 100644 dot_config/nvim/lua/config/toggleterm.lua create mode 100644 dot_config/nvim/lua/config/treesitter.lua create mode 100644 dot_config/nvim/lua/keys.lua create mode 100644 dot_config/nvim/lua/plugins.lua create mode 100644 dot_config/nvim/lua/settings.lua create mode 100644 dot_config/nvim/lua/utils.lua create mode 100644 dot_config/nvim/plugin/.keep diff --git a/dot_config/nvim/colors/flattened_dark.vim b/dot_config/nvim/colors/flattened_dark.vim new file mode 100644 index 0000000..1201914 --- /dev/null +++ b/dot_config/nvim/colors/flattened_dark.vim @@ -0,0 +1,325 @@ +" 'flattened_dark.vim' -- Vim color scheme. +" Maintainer: Romain Lafourcade (romainlafourcade@gmail.com) +" Description: Dark Solarized, without the bullshit. + +hi clear + +if exists('syntax_on') + syntax reset +endif + +let colors_name = 'flattened_dark' + +hi Normal ctermfg=12 ctermbg=8 guifg=#839496 guibg=#002b36 gui=NONE + +set background=dark + +hi ColorColumn cterm=NONE ctermbg=0 guibg=#073642 gui=NONE +hi Comment cterm=NONE ctermfg=10 guifg=#586e75 gui=italic +hi ConId cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi Conceal cterm=NONE ctermfg=4 ctermbg=8 guifg=#268bd2 guibg=#002b36 gui=NONE +hi Constant cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi Cursor cterm=NONE ctermfg=8 ctermbg=12 guifg=#002b36 guibg=#839496 gui=NONE +hi CursorColumn cterm=NONE ctermbg=0 guibg=#073642 gui=NONE +hi CursorLine cterm=NONE ctermbg=0 guibg=#073642 guisp=#93a1a1 gui=NONE +hi CursorLineNr cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi DiffAdd cterm=NONE ctermfg=2 ctermbg=0 guifg=#719e07 guibg=#073642 guisp=#719e07 gui=NONE +hi DiffChange cterm=NONE ctermfg=3 ctermbg=0 guifg=#b58900 guibg=#073642 guisp=#b58900 gui=NONE +hi DiffDelete cterm=NONE ctermfg=1 ctermbg=0 guifg=#dc322f guibg=#073642 gui=NONE +hi DiffText cterm=NONE ctermfg=4 ctermbg=0 guifg=#268bd2 guibg=#073642 guisp=#268bd2 gui=NONE +hi Directory cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi Error cterm=NONE ctermfg=1 ctermbg=NONE guifg=#dc322f guibg=#002b36 gui=NONE +hi ErrorMsg cterm=reverse ctermfg=1 ctermbg=NONE guifg=#dc322f guibg=NONE gui=reverse +hi FoldColumn cterm=NONE ctermfg=12 ctermbg=0 guifg=#839496 guibg=#073642 gui=NONE +hi Folded cterm=NONE,underline ctermfg=12 ctermbg=0 guifg=#839496 guibg=#073642 guisp=#002b36 gui=NONE +hi HelpExample cterm=NONE ctermfg=14 guifg=#93a1a1 gui=NONE +hi Identifier cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi IncSearch cterm=standout ctermfg=9 guifg=#cb4b16 gui=standout +hi LineNr cterm=NONE ctermfg=10 ctermbg=0 guifg=#586e75 guibg=#073642 gui=NONE +hi MatchParen cterm=NONE ctermfg=1 ctermbg=10 guifg=#dc322f guibg=#586e75 gui=NONE +hi ModeMsg cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi MoreMsg cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi NonText cterm=NONE ctermfg=11 guifg=#657b83 gui=NONE +hi Pmenu cterm=reverse ctermfg=12 ctermbg=0 guifg=#839496 guibg=#073642 gui=reverse +hi PmenuSbar cterm=reverse ctermfg=7 ctermbg=12 guifg=#eee8d5 guibg=#839496 gui=reverse +hi PmenuSel cterm=reverse ctermfg=10 ctermbg=7 guifg=#586e75 guibg=#eee8d5 gui=reverse +hi PmenuThumb cterm=reverse ctermfg=12 ctermbg=8 guifg=#839496 guibg=#002b36 gui=reverse +hi PreProc cterm=NONE ctermfg=1 guifg=#cb4b16 gui=NONE +hi Question cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi Search cterm=reverse ctermfg=3 ctermbg=NONE guifg=#b58900 guibg=NONE gui=reverse +hi SignColumn cterm=NONE ctermfg=12 ctermbg=NONE guifg=#839496 guibg=NONE gui=NONE +hi Special cterm=NONE ctermfg=1 guifg=#dc322f gui=NONE +hi SpecialKey cterm=NONE ctermfg=11 ctermbg=0 guifg=#657b83 guibg=#073642 gui=NONE +hi SpellBad cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#dc322f gui=undercurl +hi SpellCap cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#6c71c4 gui=undercurl +hi SpellLocal cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#b58900 gui=undercurl +hi SpellRare cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#2aa198 gui=undercurl +hi Statement cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi StatusLine cterm=reverse ctermfg=14 ctermbg=0 guifg=#93a1a1 guibg=#073642 gui=reverse +hi StatusLineNC cterm=reverse ctermfg=11 ctermbg=0 guifg=#657b83 guibg=#073642 gui=reverse +hi TabLine cterm=underline ctermfg=12 ctermbg=0 guifg=#839496 guibg=#073642 guisp=#839496 gui=underline +hi TabLineFill cterm=underline ctermfg=12 ctermbg=0 guifg=#839496 guibg=#073642 guisp=#839496 gui=underline +hi TabLineSel cterm=underline,reverse ctermfg=10 ctermbg=7 guifg=#586e75 guibg=#eee8d5 guisp=#839496 gui=underline,reverse +hi Title cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi Todo cterm=bold ctermfg=5 ctermbg=8 guifg=#d33682 guibg=NONE gui=bold +hi Type cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi Underlined cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi VarId cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi VertSplit cterm=NONE ctermfg=11 ctermbg=11 guifg=#657b83 guibg=#657b83 gui=NONE +hi Visual cterm=reverse ctermfg=10 ctermbg=8 guifg=#586e75 guibg=#002b36 gui=reverse +hi VisualNOS cterm=reverse ctermbg=0 ctermbg=NONE guibg=#073642 guifg=NONE gui=reverse +hi WarningMsg cterm=NONE ctermfg=9 guifg=#dc322f gui=NONE +hi WildMenu cterm=reverse ctermfg=7 ctermbg=0 guifg=#eee8d5 guibg=#073642 gui=reverse + +hi cPreCondit cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE + +hi gitcommitBranch cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi gitcommitComment cterm=NONE ctermfg=10 guifg=#586e75 gui=italic +hi gitcommitDiscardedFile cterm=NONE ctermfg=1 guifg=#dc322f gui=NONE +hi gitcommitDiscardedType cterm=NONE ctermfg=1 guifg=#dc322f gui=NONE +hi gitcommitFile cterm=NONE ctermfg=12 guifg=#839496 gui=NONE +hi gitcommitHeader cterm=NONE ctermfg=10 guifg=#586e75 gui=NONE +hi gitcommitOnBranch cterm=NONE ctermfg=10 guifg=#586e75 gui=NONE +hi gitcommitSelectedFile cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi gitcommitSelectedType cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi gitcommitUnmerged cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi gitcommitUnmergedFile cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi gitcommitUntrackedFile cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE + +hi helpHyperTextEntry cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi helpHyperTextJump cterm=underline ctermfg=4 guifg=#268bd2 gui=underline +hi helpNote cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi helpOption cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi helpVim cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE + +hi hsImport cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi hsImportLabel cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsModuleName cterm=underline ctermfg=2 guifg=#719e07 gui=underline +hi hsNiceOperator cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsStatement cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsString cterm=NONE ctermfg=11 guifg=#657b83 gui=NONE +hi hsStructure cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsType cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi hsTypedef cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsVarSym cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hs_DeclareFunction cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi hs_OpFunctionName cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi hs_hlFunctionName cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE + +hi htmlArg cterm=NONE ctermfg=11 guifg=#657b83 gui=NONE +hi htmlEndTag cterm=NONE ctermfg=10 guifg=#586e75 gui=NONE +hi htmlSpecialTagName cterm=NONE ctermfg=4 guifg=#268bd2 gui=italic +hi htmlTag cterm=NONE ctermfg=10 guifg=#586e75 gui=NONE +hi htmlTagN cterm=NONE ctermfg=14 guifg=#93a1a1 gui=NONE +hi htmlTagName cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE + +hi javaScript cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE + +hi pandocBlockQuote cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocBlockQuoteLeader1 cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocBlockQuoteLeader2 cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi pandocBlockQuoteLeader3 cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi pandocBlockQuoteLeader4 cterm=NONE ctermfg=1 guifg=#dc322f gui=NONE +hi pandocBlockQuoteLeader5 cterm=NONE ctermfg=12 guifg=#839496 gui=NONE +hi pandocBlockQuoteLeader6 cterm=NONE ctermfg=10 guifg=#586e75 gui=NONE +hi pandocCitation cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi pandocCitationDelim cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi pandocCitationID cterm=underline ctermfg=5 guifg=#d33682 gui=underline +hi pandocCitationRef cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi pandocComment cterm=NONE ctermfg=10 guifg=#586e75 gui=italic +hi pandocDefinitionBlock cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocDefinitionIndctr cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocDefinitionTerm cterm=standout ctermfg=13 guifg=#6c71c4 gui=standout +hi pandocEmphasis cterm=NONE ctermfg=12 guifg=#839496 gui=italic +hi pandocEmphasisDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=italic +hi pandocEmphasisHeading cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi pandocEmphasisNested cterm=NONE ctermfg=12 guifg=#839496 gui=NONE +hi pandocEmphasisNestedDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocEmphasisNestedHeading cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi pandocEmphasisNestedTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocEmphasisTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=italic +hi pandocEscapePair cterm=NONE ctermfg=1 guifg=#dc322f gui=NONE +hi pandocFootnote cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi pandocFootnoteDefLink cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi pandocFootnoteInline cterm=NONE,underline ctermfg=2 guifg=#719e07 gui=NONE,underline +hi pandocFootnoteLink cterm=underline ctermfg=2 guifg=#719e07 gui=underline +hi pandocHeading cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi pandocHeadingMarker cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi pandocImageCaption cterm=NONE,underline ctermfg=13 guifg=#6c71c4 gui=NONE,underline +hi pandocLinkDefinition cterm=underline ctermfg=6 guifg=#2aa198 guisp=#657b83 gui=underline +hi pandocLinkDefinitionID cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocLinkDelim cterm=NONE ctermfg=10 guifg=#586e75 gui=NONE +hi pandocLinkLabel cterm=underline ctermfg=4 guifg=#268bd2 gui=underline +hi pandocLinkText cterm=NONE,underline ctermfg=4 guifg=#268bd2 gui=NONE,underline +hi pandocLinkTitle cterm=underline ctermfg=11 guifg=#657b83 gui=underline +hi pandocLinkTitleDelim cterm=underline ctermfg=10 guifg=#586e75 guisp=#657b83 gui=underline +hi pandocLinkURL cterm=underline ctermfg=11 guifg=#657b83 gui=underline +hi pandocListMarker cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi pandocListReference cterm=underline ctermfg=5 guifg=#d33682 gui=underline +hi pandocMetadata cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocMetadataDelim cterm=NONE ctermfg=10 guifg=#586e75 gui=NONE +hi pandocMetadataKey cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocNonBreakingSpace cterm=reverse ctermfg=1 ctermbg=NONE guifg=#dc322f guibg=NONE gui=reverse +hi pandocRule cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocRuleLine cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocStrikeout cterm=reverse ctermfg=10 ctermbg=NONE guibg=NONE guifg=#586e75 gui=reverse +hi pandocStrikeoutDefinition cterm=reverse ctermfg=13 ctermbg=NONE guibg=NONE guifg=#6c71c4 gui=reverse +hi pandocStrikeoutHeading cterm=reverse ctermfg=9 ctermbg=NONE guibg=NONE guifg=#cb4b16 gui=reverse +hi pandocStrikeoutTable cterm=reverse ctermfg=4 ctermbg=NONE guibg=NONE guifg=#268bd2 gui=reverse +hi pandocStrongEmphasis cterm=NONE ctermfg=12 guifg=#839496 gui=NONE +hi pandocStrongEmphasisDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocStrongEmphasisEmphasis cterm=NONE ctermfg=12 guifg=#839496 gui=NONE +hi pandocStrongEmphasisEmphasisDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocStrongEmphasisEmphasisHeading cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi pandocStrongEmphasisEmphasisTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocStrongEmphasisHeading cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi pandocStrongEmphasisNested cterm=NONE ctermfg=12 guifg=#839496 gui=NONE +hi pandocStrongEmphasisNestedDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocStrongEmphasisNestedHeading cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi pandocStrongEmphasisNestedTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocStrongEmphasisTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocStyleDelim cterm=NONE ctermfg=10 guifg=#586e75 gui=NONE +hi pandocSubscript cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocSubscriptDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocSubscriptHeading cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi pandocSubscriptTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocSuperscript cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocSuperscriptDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocSuperscriptHeading cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi pandocSuperscriptTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocTableStructure cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocTableZebraDark cterm=NONE ctermfg=4 ctermbg=0 guifg=#268bd2 guibg=#073642 gui=NONE +hi pandocTableZebraLight cterm=NONE ctermfg=4 ctermbg=8 guifg=#268bd2 guibg=#002b36 gui=NONE +hi pandocTitleBlock cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocTitleBlockTitle cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocTitleComment cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocVerbatimBlock cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi pandocVerbatimInline cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi pandocVerbatimInlineDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocVerbatimInlineHeading cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi pandocVerbatimInlineTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE + +hi perlHereDoc cterm=NONE ctermfg=14 ctermbg=8 guifg=#93a1a1 guibg=#002b36 gui=NONE +hi perlStatementFileDesc cterm=NONE ctermfg=6 ctermbg=8 guifg=#2aa198 guibg=#002b36 gui=NONE +hi perlVarPlain cterm=NONE ctermfg=3 ctermbg=8 guifg=#b58900 guibg=#002b36 gui=NONE + +hi rubyDefine cterm=NONE ctermfg=14 ctermbg=8 guifg=#93a1a1 guibg=#002b36 gui=NONE + +hi texMathMatcher cterm=NONE ctermfg=3 ctermbg=8 guifg=#b58900 guibg=#002b36 gui=NONE +hi texMathZoneX cterm=NONE ctermfg=3 ctermbg=8 guifg=#b58900 guibg=#002b36 gui=NONE +hi texRefLabel cterm=NONE ctermfg=3 ctermbg=8 guifg=#b58900 guibg=#002b36 gui=NONE +hi texStatement cterm=NONE ctermfg=6 ctermbg=8 guifg=#2aa198 guibg=#002b36 gui=NONE + +hi vimCmdSep cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi vimCommand cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi vimCommentString cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi vimGroup cterm=NONE,underline ctermfg=4 guifg=#268bd2 gui=NONE,underline +hi vimHiGroup cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi vimHiLink cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi vimIsCommand cterm=NONE ctermfg=11 guifg=#657b83 gui=NONE +hi vimSynMtchOpt cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi vimSynType cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE + +hi link Boolean Constant +hi link Character Constant +hi link Conditional Statement +hi link Debug Special +hi link Define PreProc +hi link Delimiter Special +hi link Exception Statement +hi link Float Number +hi link Function Identifier +hi link HelpCommand Statement +hi link Include PreProc +hi link Keyword Statement +hi link Label Statement +hi link Macro PreProc +hi link Number Constant +hi link Operator Statement +hi link PreCondit PreProc +hi link Repeat Statement +hi link SpecialChar Special +hi link SpecialComment Special +hi link StorageClass Type +hi link String Constant +hi link Structure Type +hi link SyntasticError SpellBad +hi link SyntasticErrorSign Error +hi link SyntasticStyleErrorLine SyntasticErrorLine +hi link SyntasticStyleErrorSign SyntasticErrorSign +hi link SyntasticStyleWarningLine SyntasticWarningLine +hi link SyntasticStyleWarningSign SyntasticWarningSign +hi link SyntasticWarning SpellCap +hi link SyntasticWarningSign Todo +hi link Tag Special +hi link Typedef Type + +hi link diffAdded Statement +hi link diffBDiffer WarningMsg +hi link diffCommon WarningMsg +hi link diffDiffer WarningMsg +hi link diffIdentical WarningMsg +hi link diffIsA WarningMsg +hi link diffLine Identifier +hi link diffNoEOL WarningMsg +hi link diffOnly WarningMsg +hi link diffRemoved WarningMsg + +hi link gitcommitDiscarded gitcommitComment +hi link gitcommitDiscardedArrow gitcommitDiscardedFile +hi link gitcommitNoBranch gitcommitBranch +hi link gitcommitSelected gitcommitComment +hi link gitcommitSelectedArrow gitcommitSelectedFile +hi link gitcommitUnmergedArrow gitcommitUnmergedFile +hi link gitcommitUntracked gitcommitComment + +hi link helpSpecial Special + +hi link hsDelimTypeExport Delimiter +hi link hsImportParams Delimiter +hi link hsModuleStartLabel hsStructure +hi link hsModuleWhereLabel hsModuleStartLabel +hi link htmlLink Function + +hi link lCursor Cursor + +hi link pandocCodeBlock pandocVerbatimBlock +hi link pandocCodeBlockDelim pandocVerbatimBlock +hi link pandocEscapedCharacter pandocEscapePair +hi link pandocLineBreak pandocEscapePair +hi link pandocMetadataTitle pandocMetadata +hi link pandocTableStructureEnd pandocTableStructre +hi link pandocTableStructureTop pandocTableStructre +hi link pandocVerbatimBlockDeep pandocVerbatimBlock + +hi link vimFunc Function +hi link vimSet Normal +hi link vimSetEqual Normal +hi link vimUserFunc Function +hi link vipmVar Identifier + +hi clear SyntasticErrorLine +hi clear SyntasticWarningLine +hi clear helpLeadBlank +hi clear helpNormal +hi clear pandocTableStructre + +if has('nvim') + let g:terminal_color_0 = '#073642' + let g:terminal_color_1 = '#dc322f' + let g:terminal_color_2 = '#859900' + let g:terminal_color_3 = '#b58900' + let g:terminal_color_4 = '#268bd2' + let g:terminal_color_5 = '#d33682' + let g:terminal_color_6 = '#2aa198' + let g:terminal_color_7 = '#eee8d5' + let g:terminal_color_8 = '#002b36' + let g:terminal_color_9 = '#cb4b16' + let g:terminal_color_10 = '#586e75' + let g:terminal_color_11 = '#657b83' + let g:terminal_color_12 = '#839496' + let g:terminal_color_13 = '#6c71c4' + let g:terminal_color_14 = '#93a1a1' + let g:terminal_color_15 = '#fdf6e3' +endif diff --git a/dot_config/nvim/colors/flattened_light.vim b/dot_config/nvim/colors/flattened_light.vim new file mode 100644 index 0000000..104678f --- /dev/null +++ b/dot_config/nvim/colors/flattened_light.vim @@ -0,0 +1,314 @@ +" 'flattened_light.vim' -- Vim color scheme. +" Maintainer: Romain Lafourcade (romainlafourcade@gmail.com) +" Description: Light Solarized, without the bullshit. + +hi clear + +if exists('syntax_on') + syntax reset +endif + +let colors_name = 'flattened_light' + +hi Normal cterm=NONE ctermfg=11 ctermbg=15 guifg=#657b83 guibg=#fdf6e3 gui=NONE + +set background=light + +hi ColorColumn cterm=NONE ctermbg=7 guibg=#eee8d5 gui=NONE +hi Comment cterm=NONE ctermfg=14 guifg=#93a1a1 gui=italic +hi ConId cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi Conceal cterm=NONE ctermfg=4 ctermbg=15 guifg=#268bd2 guibg=#fdf6e3 gui=NONE +hi Constant cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi Cursor cterm=NONE ctermfg=15 ctermbg=11 guifg=#fdf6e3 guibg=#657b83 gui=NONE +hi CursorColumn cterm=NONE ctermbg=7 guibg=#eee8d5 gui=NONE +hi CursorLine cterm=NONE ctermbg=7 guibg=#eee8d5 guisp=#586e75 gui=NONE +hi CursorLineNr cterm=NONE ctermfg=130 gui=NONE guifg=Brown +hi DiffAdd cterm=NONE ctermfg=2 ctermbg=7 gui=NONE guifg=#719e07 guibg=#eee8d5 guisp=#719e07 gui=NONE +hi DiffChange cterm=NONE ctermfg=3 ctermbg=7 gui=NONE guifg=#b58900 guibg=#eee8d5 guisp=#b58900 gui=NONE +hi DiffDelete cterm=NONE ctermfg=1 ctermbg=7 gui=NONE guifg=#dc322f guibg=#eee8d5 gui=NONE +hi DiffText cterm=NONE ctermfg=4 ctermbg=7 gui=NONE guifg=#268bd2 guibg=#eee8d5 guisp=#268bd2 gui=NONE +hi Directory cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi Error cterm=NONE ctermfg=1 ctermbg=NONE guifg=#dc322f guibg=#fdf6e3 gui=NONE +hi ErrorMsg cterm=reverse ctermfg=1 ctermbg=NONE guifg=#dc322f guibg=NONE gui=reverse +hi FoldColumn cterm=NONE ctermfg=11 ctermbg=7 guifg=#657b83 guibg=#eee8d5 gui=NONE +hi Folded cterm=NONE,underline ctermfg=11 ctermbg=7 guifg=#657b83 guibg=#eee8d5 guisp=#fdf6e3 gui=NONE +hi HelpExample cterm=NONE ctermfg=10 guifg=#586e75 gui=NONE +hi Identifier cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi IncSearch cterm=standout ctermfg=9 gui=standout guifg=#cb4b16 +hi LineNr cterm=NONE ctermfg=14 ctermbg=7 guifg=#93a1a1 guibg=#eee8d5 gui=NONE +hi MatchParen cterm=NONE ctermfg=1 ctermbg=14 gui=NONE guifg=#dc322f guibg=#93a1a1 gui=NONE +hi ModeMsg cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi MoreMsg cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi NonText cterm=NONE ctermfg=12 gui=NONE guifg=#839496 gui=NONE +hi Pmenu cterm=reverse ctermfg=11 ctermbg=7 guifg=#657b83 guibg=#eee8d5 gui=reverse +hi PmenuSbar cterm=reverse ctermfg=0 ctermbg=11 guifg=#073642 guibg=#657b83 gui=reverse +hi PmenuSel cterm=reverse ctermfg=14 ctermbg=0 guifg=#93a1a1 guibg=#073642 gui=reverse +hi PmenuThumb cterm=reverse ctermfg=11 ctermbg=15 guifg=#657b83 guibg=#fdf6e3 gui=reverse +hi PreProc cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi Question cterm=NONE ctermfg=6 gui=NONE guifg=#2aa198 gui=NONE +hi Search cterm=reverse ctermfg=3 ctermbg=NONE guifg=#b58900 guibg=NONE gui=reverse +hi SignColumn cterm=NONE ctermfg=11 ctermbg=NONE guifg=#657b83 guibg=NONE gui=NONE +hi Special cterm=NONE ctermfg=1 guifg=#dc322f gui=NONE +hi SpecialKey cterm=NONE ctermfg=12 ctermbg=7 gui=NONE guifg=#839496 guibg=#eee8d5 gui=NONE +hi SpellBad cterm=undercurl ctermfg=NONE ctermbg=NONE gui=undercurl guisp=#dc322f +hi SpellCap cterm=undercurl ctermfg=NONE ctermbg=NONE gui=undercurl guisp=#6c71c4 +hi SpellLocal cterm=undercurl ctermfg=NONE ctermbg=NONE gui=undercurl guisp=#b58900 +hi SpellRare cterm=undercurl ctermfg=NONE ctermbg=NONE gui=undercurl guisp=#2aa198 +hi Statement cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi StatusLine cterm=reverse ctermfg=10 ctermbg=7 gui=reverse guifg=#586e75 guibg=#eee8d5 guibg=NONE +hi StatusLineNC cterm=reverse ctermfg=12 ctermbg=7 gui=reverse guifg=#839496 guibg=#eee8d5 guibg=NONE +hi TabLine cterm=underline ctermfg=11 ctermbg=7 gui=underline guifg=#657b83 guibg=#eee8d5 guisp=#657b83 +hi TabLineFill cterm=underline ctermfg=11 ctermbg=7 gui=underline guifg=#657b83 guibg=#eee8d5 guisp=#657b83 +hi TabLineSel cterm=underline,reverse ctermfg=14 ctermbg=0 gui=underline,reverse guifg=#93a1a1 guibg=#073642 guisp=#657b83 +hi Title cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi Todo cterm=bold ctermfg=5 ctermbg=15 guifg=#d33682 guibg=NONE gui=bold +hi Type cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi Underlined cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi VarId cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi VertSplit cterm=NONE ctermfg=12 ctermbg=12 guifg=#839496 guibg=#839496 gui=NONE +hi Visual cterm=reverse ctermfg=14 ctermbg=15 gui=reverse guifg=#93a1a1 guibg=#fdf6e3 guibg=NONE +hi VisualNOS cterm=reverse ctermbg=7 gui=reverse guibg=#eee8d5 guibg=NONE +hi WarningMsg cterm=NONE ctermfg=9 gui=NONE guifg=#dc322f gui=NONE +hi WildMenu cterm=reverse ctermfg=0 ctermbg=7 guifg=#073642 guibg=#eee8d5 gui=reverse +hi cPreCondit cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi gitcommitBranch cterm=NONE ctermfg=5 gui=NONE guifg=#d33682 gui=NONE +hi gitcommitComment cterm=NONE ctermfg=14 gui=italic guifg=#93a1a1 gui=NONE +hi gitcommitDiscardedFile cterm=NONE ctermfg=1 gui=NONE guifg=#dc322f gui=NONE +hi gitcommitDiscardedType cterm=NONE ctermfg=1 guifg=#dc322f gui=NONE +hi gitcommitFile cterm=NONE ctermfg=11 gui=NONE guifg=#657b83 gui=NONE +hi gitcommitHeader cterm=NONE ctermfg=14 guifg=#93a1a1 gui=NONE +hi gitcommitOnBranch cterm=NONE ctermfg=14 gui=NONE guifg=#93a1a1 gui=NONE +hi gitcommitSelectedFile cterm=NONE ctermfg=2 gui=NONE guifg=#719e07 gui=NONE +hi gitcommitSelectedType cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi gitcommitUnmerged cterm=NONE ctermfg=2 gui=NONE guifg=#719e07 gui=NONE +hi gitcommitUnmergedFile cterm=NONE ctermfg=3 gui=NONE guifg=#b58900 gui=NONE +hi gitcommitUntrackedFile cterm=NONE ctermfg=6 gui=NONE guifg=#2aa198 gui=NONE +hi helpHyperTextEntry cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi helpHyperTextJump cterm=underline ctermfg=4 gui=underline guifg=#268bd2 +hi helpNote cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi helpOption cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi helpVim cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi hsImport cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi hsImportLabel cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsModuleName cterm=underline ctermfg=2 gui=underline guifg=#719e07 +hi hsNiceOperator cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsStatement cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsString cterm=NONE ctermfg=12 guifg=#839496 gui=NONE +hi hsStructure cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsType cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi hsTypedef cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hsVarSym cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi hs_DeclareFunction cterm=NONE ctermfg=9 guifg=#cb4b16 gui=NONE +hi hs_OpFunctionName cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi hs_hlFunctionName cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi htmlArg cterm=NONE ctermfg=12 guifg=#839496 gui=NONE +hi htmlEndTag cterm=NONE ctermfg=14 guifg=#93a1a1 gui=NONE +hi htmlSpecialTagName cterm=NONE ctermfg=4 gui=italic guifg=#268bd2 gui=NONE +hi htmlTag cterm=NONE ctermfg=14 guifg=#93a1a1 gui=NONE +hi htmlTagN cterm=NONE ctermfg=10 gui=NONE guifg=#586e75 gui=NONE +hi htmlTagName cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi javaScript cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi pandocBlockQuote cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocBlockQuoteLeader1 cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocBlockQuoteLeader2 cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE +hi pandocBlockQuoteLeader3 cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi pandocBlockQuoteLeader4 cterm=NONE ctermfg=1 guifg=#dc322f gui=NONE +hi pandocBlockQuoteLeader5 cterm=NONE ctermfg=11 guifg=#657b83 gui=NONE +hi pandocBlockQuoteLeader6 cterm=NONE ctermfg=14 guifg=#93a1a1 gui=NONE +hi pandocCitation cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi pandocCitationDelim cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi pandocCitationID cterm=underline ctermfg=5 gui=underline guifg=#d33682 +hi pandocCitationRef cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi pandocComment cterm=NONE ctermfg=14 gui=italic guifg=#93a1a1 gui=NONE +hi pandocDefinitionBlock cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocDefinitionIndctr cterm=NONE ctermfg=13 gui=NONE guifg=#6c71c4 gui=NONE +hi pandocDefinitionTerm cterm=standout ctermfg=13 gui=standout guifg=#6c71c4 +hi pandocEmphasis cterm=NONE ctermfg=11 gui=italic guifg=#657b83 gui=NONE +hi pandocEmphasisDefinition cterm=NONE ctermfg=13 gui=italic guifg=#6c71c4 gui=NONE +hi pandocEmphasisHeading cterm=NONE ctermfg=9 gui=NONE guifg=#cb4b16 gui=NONE +hi pandocEmphasisNested cterm=NONE ctermfg=11 gui=NONE guifg=#657b83 gui=NONE +hi pandocEmphasisNestedDefinition cterm=NONE ctermfg=13 gui=NONE guifg=#6c71c4 gui=NONE +hi pandocEmphasisNestedHeading cterm=NONE ctermfg=9 gui=NONE guifg=#cb4b16 gui=NONE +hi pandocEmphasisNestedTable cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocEmphasisTable cterm=NONE ctermfg=4 gui=italic guifg=#268bd2 gui=NONE +hi pandocEscapePair cterm=NONE ctermfg=1 gui=NONE guifg=#dc322f gui=NONE +hi pandocFootnote cterm=NONE ctermfg=2 guifg=#719e07 gui=NONE +hi pandocFootnoteDefLink cterm=NONE ctermfg=2 gui=NONE guifg=#719e07 gui=NONE +hi pandocFootnoteInline cterm=NONE,underline ctermfg=2 gui=NONE,underline guifg=#719e07 gui=NONE +hi pandocFootnoteLink cterm=underline ctermfg=2 gui=underline guifg=#719e07 +hi pandocHeading cterm=NONE ctermfg=9 gui=NONE guifg=#cb4b16 gui=NONE +hi pandocHeadingMarker cterm=NONE ctermfg=3 gui=NONE guifg=#b58900 gui=NONE +hi pandocImageCaption cterm=NONE,underline ctermfg=13 gui=NONE,underline guifg=#6c71c4 gui=NONE +hi pandocLinkDefinition cterm=underline ctermfg=6 gui=underline guifg=#2aa198 guisp=#839496 +hi pandocLinkDefinitionID cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocLinkDelim cterm=NONE ctermfg=14 guifg=#93a1a1 gui=NONE +hi pandocLinkLabel cterm=underline ctermfg=4 gui=underline guifg=#268bd2 +hi pandocLinkText cterm=NONE,underline ctermfg=4 gui=NONE,underline guifg=#268bd2 gui=NONE +hi pandocLinkTitle cterm=underline ctermfg=12 gui=underline guifg=#839496 +hi pandocLinkTitleDelim cterm=underline ctermfg=14 gui=underline guifg=#93a1a1 guisp=#839496 +hi pandocLinkURL cterm=underline ctermfg=12 gui=underline guifg=#839496 +hi pandocListMarker cterm=NONE ctermfg=5 guifg=#d33682 gui=NONE +hi pandocListReference cterm=underline ctermfg=5 gui=underline guifg=#d33682 +hi pandocMetadata cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocMetadataDelim cterm=NONE ctermfg=14 guifg=#93a1a1 gui=NONE +hi pandocMetadataKey cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocNonBreakingSpace cterm=reverse ctermfg=1 ctermbg=NONE gui=reverse guifg=#dc322f guibg=NONE +hi pandocRule cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocRuleLine cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocStrikeout cterm=reverse ctermfg=14 ctermbg=NONE gui=reverse guifg=#93a1a1 guibg=NONE +hi pandocStrikeoutDefinition cterm=reverse ctermfg=13 ctermbg=NONE gui=reverse guifg=#6c71c4 guibg=NONE +hi pandocStrikeoutHeading cterm=reverse ctermfg=9 ctermbg=NONE gui=reverse guifg=#cb4b16 guibg=NONE +hi pandocStrikeoutTable cterm=reverse ctermfg=4 ctermbg=NONE gui=reverse guifg=#268bd2 guibg=NONE +hi pandocStrongEmphasis cterm=NONE ctermfg=11 gui=NONE guifg=#657b83 gui=NONE +hi pandocStrongEmphasisDefinition cterm=NONE ctermfg=13 gui=NONE guifg=#6c71c4 gui=NONE +hi pandocStrongEmphasisEmphasis cterm=NONE ctermfg=11 gui=NONE guifg=#657b83 gui=NONE +hi pandocStrongEmphasisEmphasisDefinition cterm=NONE ctermfg=13 gui=NONE guifg=#6c71c4 gui=NONE +hi pandocStrongEmphasisEmphasisHeading cterm=NONE ctermfg=9 gui=NONE guifg=#cb4b16 gui=NONE +hi pandocStrongEmphasisEmphasisTable cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocStrongEmphasisHeading cterm=NONE ctermfg=9 gui=NONE guifg=#cb4b16 gui=NONE +hi pandocStrongEmphasisNested cterm=NONE ctermfg=11 gui=NONE guifg=#657b83 gui=NONE +hi pandocStrongEmphasisNestedDefinition cterm=NONE ctermfg=13 gui=NONE guifg=#6c71c4 gui=NONE +hi pandocStrongEmphasisNestedHeading cterm=NONE ctermfg=9 gui=NONE guifg=#cb4b16 gui=NONE +hi pandocStrongEmphasisNestedTable cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocStrongEmphasisTable cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocStyleDelim cterm=NONE ctermfg=14 guifg=#93a1a1 gui=NONE +hi pandocSubscript cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocSubscriptDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocSubscriptHeading cterm=NONE ctermfg=9 gui=NONE guifg=#cb4b16 gui=NONE +hi pandocSubscriptTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocSuperscript cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocSuperscriptDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocSuperscriptHeading cterm=NONE ctermfg=9 gui=NONE guifg=#cb4b16 gui=NONE +hi pandocSuperscriptTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocTableStructure cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocTableZebraDark cterm=NONE ctermfg=4 ctermbg=7 guifg=#268bd2 guibg=#eee8d5 gui=NONE +hi pandocTableZebraLight cterm=NONE ctermfg=4 ctermbg=15 guifg=#268bd2 guibg=#fdf6e3 gui=NONE +hi pandocTitleBlock cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi pandocTitleBlockTitle cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocTitleComment cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi pandocVerbatimBlock cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi pandocVerbatimInline cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi pandocVerbatimInlineDefinition cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi pandocVerbatimInlineHeading cterm=NONE ctermfg=9 gui=NONE guifg=#cb4b16 gui=NONE +hi pandocVerbatimInlineTable cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi perlHereDoc cterm=NONE ctermfg=10 ctermbg=15 guifg=#586e75 guibg=#fdf6e3 gui=NONE +hi perlStatementFileDesc cterm=NONE ctermfg=6 ctermbg=15 guifg=#2aa198 guibg=#fdf6e3 gui=NONE +hi perlVarPlain cterm=NONE ctermfg=3 ctermbg=15 guifg=#b58900 guibg=#fdf6e3 gui=NONE +hi rubyDefine cterm=NONE ctermfg=10 ctermbg=15 gui=NONE guifg=#586e75 guibg=#fdf6e3 gui=NONE +hi texMathMatcher cterm=NONE ctermfg=3 ctermbg=15 guifg=#b58900 guibg=#fdf6e3 gui=NONE +hi texMathZoneX cterm=NONE ctermfg=3 ctermbg=15 guifg=#b58900 guibg=#fdf6e3 gui=NONE +hi texRefLabel cterm=NONE ctermfg=3 ctermbg=15 guifg=#b58900 guibg=#fdf6e3 gui=NONE +hi texStatement cterm=NONE ctermfg=6 ctermbg=15 guifg=#2aa198 guibg=#fdf6e3 gui=NONE +hi vimCmdSep cterm=NONE ctermfg=4 gui=NONE guifg=#268bd2 gui=NONE +hi vimCommand cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi vimCommentString cterm=NONE ctermfg=13 guifg=#6c71c4 gui=NONE +hi vimGroup cterm=NONE,underline ctermfg=4 gui=NONE,underline guifg=#268bd2 gui=NONE +hi vimHiGroup cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi vimHiLink cterm=NONE ctermfg=4 guifg=#268bd2 gui=NONE +hi vimIsCommand cterm=NONE ctermfg=12 guifg=#839496 gui=NONE +hi vimSynMtchOpt cterm=NONE ctermfg=3 guifg=#b58900 gui=NONE +hi vimSynType cterm=NONE ctermfg=6 guifg=#2aa198 gui=NONE + +hi link Boolean Constant +hi link Character Constant +hi link Conditional Statement +hi link Debug Special +hi link Define PreProc +hi link Delimiter Special +hi link Exception Statement +hi link Float Number +hi link Function Identifier +hi link HelpCommand Statement +hi link Include PreProc +hi link Keyword Statement +hi link Label Statement +hi link Macro PreProc +hi link Number Constant +hi link Operator Statement +hi link PreCondit PreProc +hi link Repeat Statement +hi link SpecialChar Special +hi link SpecialComment Special +hi link StorageClass Type +hi link String Constant +hi link Structure Type +hi link SyntasticError SpellBad +hi link SyntasticErrorSign Error +hi link SyntasticStyleErrorLine SyntasticErrorLine +hi link SyntasticStyleErrorSign SyntasticErrorSign +hi link SyntasticStyleWarningLine SyntasticWarningLine +hi link SyntasticStyleWarningSign SyntasticWarningSign +hi link SyntasticWarning SpellCap +hi link SyntasticWarningSign Todo +hi link Tag Special +hi link Typedef Type + +hi link diffAdded Statement +hi link diffBDiffer WarningMsg +hi link diffCommon WarningMsg +hi link diffDiffer WarningMsg +hi link diffIdentical WarningMsg +hi link diffIsA WarningMsg +hi link diffLine Identifier +hi link diffNoEOL WarningMsg +hi link diffOnly WarningMsg +hi link diffRemoved WarningMsg + +hi link gitcommitDiscarded gitcommitComment +hi link gitcommitDiscardedArrow gitcommitDiscardedFile +hi link gitcommitNoBranch gitcommitBranch +hi link gitcommitSelected gitcommitComment +hi link gitcommitSelectedArrow gitcommitSelectedFile +hi link gitcommitUnmergedArrow gitcommitUnmergedFile +hi link gitcommitUntracked gitcommitComment + +hi link helpSpecial Special + +hi link hsDelimTypeExport Delimiter +hi link hsImportParams Delimiter +hi link hsModuleStartLabel hsStructure +hi link hsModuleWhereLabel hsModuleStartLabel +hi link htmlLink Function + +hi link lCursor Cursor + +hi link pandocCodeBlock pandocVerbatimBlock +hi link pandocCodeBlockDelim pandocVerbatimBlock +hi link pandocEscapedCharacter pandocEscapePair +hi link pandocLineBreak pandocEscapePair +hi link pandocMetadataTitle pandocMetadata +hi link pandocTableStructureEnd pandocTableStructre +hi link pandocTableStructureTop pandocTableStructre +hi link pandocVerbatimBlockDeep pandocVerbatimBlock + +hi link vimFunc Function +hi link vimSet Normal +hi link vimSetEqual Normal +hi link vimUserFunc Function +hi link vipmVar Identifier + +hi clear SyntasticErrorLine +hi clear SyntasticWarningLine +hi clear helpLeadBlank +hi clear helpNormal +hi clear pandocTableStructre + +if has('nvim') + let g:terminal_color_0 = '#eee8d5' + let g:terminal_color_1 = '#dc322f' + let g:terminal_color_2 = '#859900' + let g:terminal_color_3 = '#b58900' + let g:terminal_color_4 = '#268bd2' + let g:terminal_color_5 = '#d33682' + let g:terminal_color_6 = '#2aa198' + let g:terminal_color_7 = '#073642' + let g:terminal_color_8 = '#fdf6e3' + let g:terminal_color_9 = '#cb4b16' + let g:terminal_color_10 = '#93a1a1' + let g:terminal_color_11 = '#839496' + let g:terminal_color_12 = '#657b83' + let g:terminal_color_13 = '#6c71c4' + let g:terminal_color_14 = '#586e75' + let g:terminal_color_15 = '#002b36' +endif diff --git a/dot_config/nvim/colors/tokyonight.vim b/dot_config/nvim/colors/tokyonight.vim new file mode 100644 index 0000000..c1a662c --- /dev/null +++ b/dot_config/nvim/colors/tokyonight.vim @@ -0,0 +1,1836 @@ +" ----------------------------------------------------------------------------- +" Name: Tokyo Night +" Description: A clean, dark Vim theme that celebrates the lights of downtown Tokyo at night (Based on the VS Code version of the theme) +" Author: Ghifari Taqiuddin +" Website: https://github.com/ghifarit53/tokyonight.vim/ +" License: MIT +" ----------------------------------------------------------------------------- + +" Initialization: {{{ +highlight clear +if exists('syntax_on') + syntax reset +endif +set background=dark + +let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 2 +let s:tmux = executable('tmux') && $TMUX !=# '' + +let g:colors_name = 'tokyonight' +" }}} +" Configuration: {{{ +let s:configuration = {} +let s:configuration.style = get(g:, 'tokyonight_style', 'night') +let s:configuration.transparent_background = get(g:, 'tokyonight_transparent_background', 0) +let s:configuration.menu_selection_background = get(g:, 'tokyonight_menu_selection_background', 'green') +let s:configuration.disable_italic_comment = get(g:, 'tokyonight_disable_italic_comment', 0) +let s:configuration.enable_italic = get(g:, 'tokyonight_enable_italic', 0) +let s:configuration.cursor = get(g:, 'tokyonight_cursor', 'auto') +let s:configuration.current_word = get(g:, 'tokyonight_current_word', get(g:, 'tokyonight_transparent_background', 0) == 0 ? 'grey background' : 'bold') +" }}} +" Palette: {{{ +" +if s:configuration.style ==# 'night' + let s:palette = { + \ 'black': ['#06080a', '237', 'DarkGrey'], + \ 'bg0': ['#1a1b26', '235', 'Black'], + \ 'bg1': ['#232433', '236', 'DarkGrey'], + \ 'bg2': ['#2a2b3d', '236', 'DarkGrey'], + \ 'bg3': ['#32344a', '237', 'DarkGrey'], + \ 'bg4': ['#3b3d57', '237', 'Grey'], + \ 'bg_red': ['#ff7a93', '203', 'Red'], + \ 'diff_red': ['#803d49', '52', 'DarkRed'], + \ 'bg_green': ['#b9f27c', '107', 'Green'], + \ 'diff_green': ['#618041', '22', 'DarkGreen'], + \ 'bg_blue': ['#7da6ff', '110', 'Blue'], + \ 'diff_blue': ['#3e5380', '17', 'DarkBlue'], + \ 'fg': ['#a9b1d6', '250', 'White'], + \ 'red': ['#F7768E', '203', 'Red'], + \ 'orange': ['#FF9E64', '215', 'Orange'], + \ 'yellow': ['#E0AF68', '179', 'Yellow'], + \ 'green': ['#9ECE6A', '107', 'Green'], + \ 'blue': ['#7AA2F7', '110', 'Blue'], + \ 'purple': ['#ad8ee6', '176', 'Magenta'], + \ 'grey': ['#444B6A', '246', 'LightGrey'], + \ 'none': ['NONE', 'NONE', 'NONE'] + \ } +elseif s:configuration.style ==# 'storm' + let s:palette = { + \ 'black': ['#06080a', '237', 'DarkGrey'], + \ 'bg0': ['#24283b', '235', 'Black'], + \ 'bg1': ['#282d42', '236', 'DarkGrey'], + \ 'bg2': ['#2f344d', '236', 'DarkGrey'], + \ 'bg3': ['#333954', '237', 'DarkGrey'], + \ 'bg4': ['#3a405e', '237', 'Grey'], + \ 'bg_red': ['#ff7a93', '203', 'Red'], + \ 'diff_red': ['#803d49', '52', 'DarkRed'], + \ 'bg_green': ['#b9f27c', '107', 'Green'], + \ 'diff_green': ['#618041', '22', 'DarkGreen'], + \ 'bg_blue': ['#7da6ff', '110', 'Blue'], + \ 'diff_blue': ['#3e5380', '17', 'DarkBlue'], + \ 'fg': ['#a9b1d6', '250', 'White'], + \ 'red': ['#F7768E', '203', 'Red'], + \ 'orange': ['#FF9E64', '215', 'Orange'], + \ 'yellow': ['#E0AF68', '179', 'Yellow'], + \ 'green': ['#9ECE6A', '107', 'Green'], + \ 'blue': ['#7AA2F7', '110', 'Blue'], + \ 'purple': ['#ad8ee6', '176', 'Magenta'], + \ 'grey': ['#444B6A', '246', 'LightGrey'], + \ 'none': ['NONE', 'NONE', 'NONE'] + \ } +endif + +" }}} +" Function: {{{ +" call s:HL(group, foreground, background) +" call s:HL(group, foreground, background, gui, guisp) +" +" E.g.: +" call s:HL('Normal', s:palette.fg, s:palette.bg0) + +if (has('termguicolors') && &termguicolors) || has('gui_running') " guifg guibg gui cterm guisp + function! s:HL(group, fg, bg, ...) + let hl_string = [ + \ 'highlight', a:group, + \ 'guifg=' . a:fg[0], + \ 'guibg=' . a:bg[0], + \ ] + if a:0 >= 1 + if a:1 ==# 'undercurl' + if !s:tmux + call add(hl_string, 'gui=undercurl') + else + call add(hl_string, 'gui=underline') + endif + call add(hl_string, 'cterm=underline') + else + call add(hl_string, 'gui=' . a:1) + call add(hl_string, 'cterm=' . a:1) + endif + else + call add(hl_string, 'gui=NONE') + call add(hl_string, 'cterm=NONE') + endif + if a:0 >= 2 + call add(hl_string, 'guisp=' . a:2[0]) + endif + execute join(hl_string, ' ') + endfunction +elseif s:t_Co >= 256 " ctermfg ctermbg cterm + function! s:HL(group, fg, bg, ...) + let hl_string = [ + \ 'highlight', a:group, + \ 'ctermfg=' . a:fg[1], + \ 'ctermbg=' . a:bg[1], + \ ] + if a:0 >= 1 + if a:1 ==# 'undercurl' + call add(hl_string, 'cterm=underline') + else + call add(hl_string, 'cterm=' . a:1) + endif + else + call add(hl_string, 'cterm=NONE') + endif + execute join(hl_string, ' ') + endfunction +else " ctermfg ctermbg cterm + function! s:HL(group, fg, bg, ...) + let hl_string = [ + \ 'highlight', a:group, + \ 'ctermfg=' . a:fg[2], + \ 'ctermbg=' . a:bg[2], + \ ] + if a:0 >= 1 + if a:1 ==# 'undercurl' + call add(hl_string, 'cterm=underline') + else + call add(hl_string, 'cterm=' . a:1) + endif + else + call add(hl_string, 'cterm=NONE') + endif + execute join(hl_string, ' ') + endfunction +endif +" }}} + +" Common Highlight Groups: {{{ +" UI: {{{ +if s:configuration.transparent_background + call s:HL('Normal', s:palette.fg, s:palette.none) + call s:HL('Terminal', s:palette.fg, s:palette.none) + call s:HL('EndOfBuffer', s:palette.bg0, s:palette.none) + call s:HL('FoldColumn', s:palette.grey, s:palette.none) + call s:HL('Folded', s:palette.grey, s:palette.none) + call s:HL('SignColumn', s:palette.fg, s:palette.none) + call s:HL('ToolbarLine', s:palette.fg, s:palette.none) +else + call s:HL('Normal', s:palette.fg, s:palette.bg0) + call s:HL('Terminal', s:palette.fg, s:palette.bg0) + call s:HL('EndOfBuffer', s:palette.bg0, s:palette.bg0) + call s:HL('FoldColumn', s:palette.grey, s:palette.bg1) + call s:HL('Folded', s:palette.grey, s:palette.bg1) + call s:HL('SignColumn', s:palette.fg, s:palette.bg1) + call s:HL('ToolbarLine', s:palette.fg, s:palette.bg2) +endif +call s:HL('ColorColumn', s:palette.none, s:palette.bg1) +call s:HL('Conceal', s:palette.grey, s:palette.none) +if s:configuration.cursor ==# 'auto' + call s:HL('Cursor', s:palette.none, s:palette.none, 'reverse') +elseif s:configuration.cursor ==# 'red' + call s:HL('Cursor', s:palette.bg0, s:palette.red) +elseif s:configuration.cursor ==# 'green' + call s:HL('Cursor', s:palette.bg0, s:palette.green) +elseif s:configuration.cursor ==# 'blue' + call s:HL('Cursor', s:palette.bg0, s:palette.blue) +endif +highlight! link vCursor Cursor +highlight! link iCursor Cursor +highlight! link lCursor Cursor +highlight! link CursorIM Cursor +call s:HL('CursorColumn', s:palette.none, s:palette.bg1) +call s:HL('CursorLine', s:palette.none, s:palette.bg1) +call s:HL('LineNr', s:palette.grey, s:palette.none) +if &relativenumber == 1 && &cursorline == 0 + call s:HL('CursorLineNr', s:palette.fg, s:palette.none) +else + call s:HL('CursorLineNr', s:palette.fg, s:palette.bg1) +endif +call s:HL('DiffAdd', s:palette.none, s:palette.diff_green) +call s:HL('DiffChange', s:palette.none, s:palette.diff_blue) +call s:HL('DiffDelete', s:palette.none, s:palette.diff_red) +call s:HL('DiffText', s:palette.none, s:palette.none, 'reverse') +call s:HL('Directory', s:palette.green, s:palette.none) +call s:HL('ErrorMsg', s:palette.red, s:palette.none, 'bold,underline') +call s:HL('WarningMsg', s:palette.yellow, s:palette.none, 'bold') +call s:HL('ModeMsg', s:palette.fg, s:palette.none, 'bold') +call s:HL('MoreMsg', s:palette.blue, s:palette.none, 'bold') +call s:HL('IncSearch', s:palette.bg0, s:palette.bg_red) +call s:HL('Search', s:palette.bg0, s:palette.bg_green) +call s:HL('MatchParen', s:palette.none, s:palette.bg4) +call s:HL('NonText', s:palette.bg4, s:palette.none) +call s:HL('Whitespace', s:palette.bg4, s:palette.none) +call s:HL('SpecialKey', s:palette.bg4, s:palette.none) +call s:HL('Pmenu', s:palette.fg, s:palette.bg2) +call s:HL('PmenuSbar', s:palette.none, s:palette.bg2) +if s:configuration.menu_selection_background ==# 'blue' + call s:HL('PmenuSel', s:palette.bg0, s:palette.bg_blue) + call s:HL('WildMenu', s:palette.bg0, s:palette.bg_blue) +elseif s:configuration.menu_selection_background ==# 'green' + call s:HL('PmenuSel', s:palette.bg0, s:palette.bg_green) + call s:HL('WildMenu', s:palette.bg0, s:palette.bg_green) +elseif s:configuration.menu_selection_background ==# 'red' + call s:HL('PmenuSel', s:palette.bg0, s:palette.bg_red) + call s:HL('WildMenu', s:palette.bg0, s:palette.bg_red) +endif +call s:HL('PmenuThumb', s:palette.none, s:palette.grey) +call s:HL('Question', s:palette.yellow, s:palette.none) +call s:HL('SpellBad', s:palette.red, s:palette.none, 'undercurl', s:palette.red) +call s:HL('SpellCap', s:palette.yellow, s:palette.none, 'undercurl', s:palette.yellow) +call s:HL('SpellLocal', s:palette.blue, s:palette.none, 'undercurl', s:palette.blue) +call s:HL('SpellRare', s:palette.purple, s:palette.none, 'undercurl', s:palette.purple) +call s:HL('StatusLine', s:palette.fg, s:palette.bg3) +call s:HL('StatusLineTerm', s:palette.fg, s:palette.bg3) +call s:HL('StatusLineNC', s:palette.grey, s:palette.bg1) +call s:HL('StatusLineTermNC', s:palette.grey, s:palette.bg1) +call s:HL('TabLine', s:palette.fg, s:palette.bg4) +call s:HL('TabLineFill', s:palette.grey, s:palette.bg1) +call s:HL('TabLineSel', s:palette.bg0, s:palette.bg_red) +call s:HL('VertSplit', s:palette.black, s:palette.none) +call s:HL('Visual', s:palette.none, s:palette.bg3) +call s:HL('VisualNOS', s:palette.none, s:palette.bg3, 'underline') +call s:HL('QuickFixLine', s:palette.blue, s:palette.none, 'bold') +call s:HL('Debug', s:palette.yellow, s:palette.none) +call s:HL('debugPC', s:palette.bg0, s:palette.green) +call s:HL('debugBreakpoint', s:palette.bg0, s:palette.red) +call s:HL('ToolbarButton', s:palette.bg0, s:palette.bg_blue) +if has('nvim') + highlight! link healthError Red + highlight! link healthSuccess Green + highlight! link healthWarning Yellow + highlight! link LspDiagnosticsError Grey + highlight! link LspDiagnosticsWarning Grey + highlight! link LspDiagnosticsInformation Grey + highlight! link LspDiagnosticsHint Grey + highlight! link LspReferenceText CocHighlightText + highlight! link LspReferenceRead CocHighlightText + highlight! link LspReferenceWrite CocHighlightText +endif +" +" }}} +" Syntax: {{{ +if s:configuration.enable_italic + call s:HL('Type', s:palette.blue, s:palette.none, 'italic') + call s:HL('Structure', s:palette.blue, s:palette.none, 'italic') + call s:HL('StorageClass', s:palette.blue, s:palette.none, 'italic') + call s:HL('Identifier', s:palette.orange, s:palette.none, 'italic') + call s:HL('Constant', s:palette.orange, s:palette.none, 'italic') +else + call s:HL('Type', s:palette.blue, s:palette.none) + call s:HL('Structure', s:palette.blue, s:palette.none) + call s:HL('StorageClass', s:palette.blue, s:palette.none) + call s:HL('Identifier', s:palette.orange, s:palette.none) + call s:HL('Constant', s:palette.orange, s:palette.none) +endif +call s:HL('PreProc', s:palette.red, s:palette.none) +call s:HL('PreCondit', s:palette.red, s:palette.none) +call s:HL('Include', s:palette.red, s:palette.none) +call s:HL('Keyword', s:palette.red, s:palette.none) +call s:HL('Define', s:palette.red, s:palette.none) +call s:HL('Typedef', s:palette.red, s:palette.none) +call s:HL('Exception', s:palette.red, s:palette.none) +call s:HL('Conditional', s:palette.red, s:palette.none) +call s:HL('Repeat', s:palette.red, s:palette.none) +call s:HL('Statement', s:palette.red, s:palette.none) +call s:HL('Macro', s:palette.purple, s:palette.none) +call s:HL('Error', s:palette.red, s:palette.none) +call s:HL('Label', s:palette.purple, s:palette.none) +call s:HL('Special', s:palette.purple, s:palette.none) +call s:HL('SpecialChar', s:palette.purple, s:palette.none) +call s:HL('Boolean', s:palette.purple, s:palette.none) +call s:HL('String', s:palette.yellow, s:palette.none) +call s:HL('Character', s:palette.yellow, s:palette.none) +call s:HL('Number', s:palette.purple, s:palette.none) +call s:HL('Float', s:palette.purple, s:palette.none) +call s:HL('Function', s:palette.green, s:palette.none) +call s:HL('Operator', s:palette.red, s:palette.none) +call s:HL('Title', s:palette.red, s:palette.none, 'bold') +call s:HL('Tag', s:palette.orange, s:palette.none) +call s:HL('Delimiter', s:palette.fg, s:palette.none) +if s:configuration.disable_italic_comment + call s:HL('Comment', s:palette.grey, s:palette.none) + call s:HL('SpecialComment', s:palette.grey, s:palette.none) + call s:HL('Todo', s:palette.blue, s:palette.none) +else + call s:HL('Comment', s:palette.grey, s:palette.none, 'italic') + call s:HL('SpecialComment', s:palette.grey, s:palette.none, 'italic') + call s:HL('Todo', s:palette.blue, s:palette.none, 'italic') +endif +call s:HL('Ignore', s:palette.grey, s:palette.none) +call s:HL('Underlined', s:palette.none, s:palette.none, 'underline') +" }}} +" Predefined Highlight Groups: {{{ +call s:HL('Fg', s:palette.fg, s:palette.none) +call s:HL('Grey', s:palette.grey, s:palette.none) +call s:HL('Red', s:palette.red, s:palette.none) +call s:HL('Orange', s:palette.orange, s:palette.none) +call s:HL('Yellow', s:palette.yellow, s:palette.none) +call s:HL('Green', s:palette.green, s:palette.none) +call s:HL('Blue', s:palette.blue, s:palette.none) +call s:HL('Purple', s:palette.purple, s:palette.none) +if s:configuration.enable_italic + call s:HL('RedItalic', s:palette.red, s:palette.none, 'italic') + call s:HL('BlueItalic', s:palette.blue, s:palette.none, 'italic') + call s:HL('OrangeItalic', s:palette.orange, s:palette.none, 'italic') +else + call s:HL('RedItalic', s:palette.red, s:palette.none) + call s:HL('BlueItalic', s:palette.blue, s:palette.none) + call s:HL('OrangeItalic', s:palette.orange, s:palette.none) +endif +" }}} +" +" }}} +" Extended File Types: {{{ +" Markdown: {{{ +" builtin: {{{ +call s:HL('markdownH1', s:palette.red, s:palette.none, 'bold') +call s:HL('markdownH2', s:palette.orange, s:palette.none, 'bold') +call s:HL('markdownH3', s:palette.yellow, s:palette.none, 'bold') +call s:HL('markdownH4', s:palette.green, s:palette.none, 'bold') +call s:HL('markdownH5', s:palette.blue, s:palette.none, 'bold') +call s:HL('markdownH6', s:palette.purple, s:palette.none, 'bold') +call s:HL('markdownUrl', s:palette.blue, s:palette.none, 'underline') +call s:HL('markdownItalic', s:palette.none, s:palette.none, 'italic') +call s:HL('markdownBold', s:palette.none, s:palette.none, 'bold') +call s:HL('markdownItalicDelimiter', s:palette.grey, s:palette.none, 'italic') +highlight! link markdownCode Green +highlight! link markdownCodeBlock Green +highlight! link markdownCodeDelimiter Green +highlight! link markdownBlockquote Grey +highlight! link markdownListMarker Red +highlight! link markdownOrderedListMarker Red +highlight! link markdownRule Purple +highlight! link markdownHeadingRule Grey +highlight! link markdownUrlDelimiter Grey +highlight! link markdownLinkDelimiter Grey +highlight! link markdownLinkTextDelimiter Grey +highlight! link markdownHeadingDelimiter Grey +highlight! link markdownLinkText Red +highlight! link markdownUrlTitleDelimiter Green +highlight! link markdownIdDeclaration markdownLinkText +highlight! link markdownBoldDelimiter Grey +highlight! link markdownId Yellow +" }}} +" vim-markdown: https://github.com/gabrielelana/vim-markdown{{{ +call s:HL('mkdURL', s:palette.blue, s:palette.none, 'underline') +call s:HL('mkdInlineURL', s:palette.blue, s:palette.none, 'underline') +call s:HL('mkdItalic', s:palette.grey, s:palette.none, 'italic') +highlight! link mkdCodeDelimiter Green +highlight! link mkdBold Grey +highlight! link mkdLink Red +highlight! link mkdHeading Grey +highlight! link mkdListItem Red +highlight! link mkdRule Purple +highlight! link mkdDelimiter Grey +highlight! link mkdId Yellow +" }}} +" }}} +" ReStructuredText: {{{ +" builtin: https://github.com/marshallward/vim-restructuredtext{{{ +call s:HL('rstStandaloneHyperlink', s:palette.purple, s:palette.none, 'underline') +call s:HL('rstEmphasis', s:palette.none, s:palette.none, 'italic') +call s:HL('rstStrongEmphasis', s:palette.none, s:palette.none, 'bold') +call s:HL('rstStandaloneHyperlink', s:palette.blue, s:palette.none, 'underline') +call s:HL('rstHyperlinkTarget', s:palette.blue, s:palette.none, 'underline') +highlight! link rstSubstitutionReference Blue +highlight! link rstInterpretedTextOrHyperlinkReference Green +highlight! link rstTableLines Grey +highlight! link rstInlineLiteral Green +highlight! link rstLiteralBlock Green +highlight! link rstQuotedLiteralBlock Green +" }}} +" }}} +" LaTex: {{{ +" builtin: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX{{{ +highlight! link texStatement BlueItalic +highlight! link texOnlyMath Grey +highlight! link texDefName Yellow +highlight! link texNewCmd Orange +highlight! link texCmdName Blue +highlight! link texBeginEnd Red +highlight! link texBeginEndName Green +highlight! link texDocType RedItalic +highlight! link texDocTypeArgs Orange +highlight! link texInputFile Green +" }}} +" }}} +" Html: {{{ +" builtin: https://notabug.org/jorgesumle/vim-html-syntax{{{ +call s:HL('htmlH1', s:palette.red, s:palette.none, 'bold') +call s:HL('htmlH2', s:palette.orange, s:palette.none, 'bold') +call s:HL('htmlH3', s:palette.yellow, s:palette.none, 'bold') +call s:HL('htmlH4', s:palette.green, s:palette.none, 'bold') +call s:HL('htmlH5', s:palette.blue, s:palette.none, 'bold') +call s:HL('htmlH6', s:palette.purple, s:palette.none, 'bold') +call s:HL('htmlLink', s:palette.none, s:palette.none, 'underline') +call s:HL('htmlBold', s:palette.none, s:palette.none, 'bold') +call s:HL('htmlBoldUnderline', s:palette.none, s:palette.none, 'bold,underline') +call s:HL('htmlBoldItalic', s:palette.none, s:palette.none, 'bold,italic') +call s:HL('htmlBoldUnderlineItalic', s:palette.none, s:palette.none, 'bold,underline,italic') +call s:HL('htmlUnderline', s:palette.none, s:palette.none, 'underline') +call s:HL('htmlUnderlineItalic', s:palette.none, s:palette.none, 'underline,italic') +call s:HL('htmlItalic', s:palette.none, s:palette.none, 'italic') +highlight! link htmlTag Green +highlight! link htmlEndTag Blue +highlight! link htmlTagN RedItalic +highlight! link htmlTagName RedItalic +highlight! link htmlArg Blue +highlight! link htmlScriptTag Purple +highlight! link htmlSpecialTagName RedItalic +highlight! link htmlString Green +" }}} +" }}} +" Xml: {{{ +" builtin: https://github.com/chrisbra/vim-xml-ftplugin{{{ +highlight! link xmlTag Green +highlight! link xmlEndTag Blue +highlight! link xmlTagName RedItalic +highlight! link xmlEqual Orange +highlight! link xmlAttrib Blue +highlight! link xmlEntity Red +highlight! link xmlEntityPunct Red +highlight! link xmlDocTypeDecl Grey +highlight! link xmlDocTypeKeyword RedItalic +highlight! link xmlCdataStart Grey +highlight! link xmlCdataCdata Purple +highlight! link xmlString Green +" }}} +" }}} +" CSS: {{{ +" builtin: https://github.com/JulesWang/css.vim{{{ +highlight! link cssStringQ Green +highlight! link cssStringQQ Green +highlight! link cssAttrComma Grey +highlight! link cssBraces Grey +highlight! link cssTagName Purple +highlight! link cssClassNameDot Orange +highlight! link cssClassName Red +highlight! link cssFunctionName Orange +highlight! link cssAttr Green +highlight! link cssCommonAttr Green +highlight! link cssProp Blue +highlight! link cssPseudoClassId Yellow +highlight! link cssPseudoClassFn Green +highlight! link cssPseudoClass Yellow +highlight! link cssImportant Red +highlight! link cssSelectorOp Orange +highlight! link cssSelectorOp2 Orange +highlight! link cssColor Green +highlight! link cssUnitDecorators Orange +highlight! link cssValueLength Green +highlight! link cssValueInteger Green +highlight! link cssValueNumber Green +highlight! link cssValueAngle Green +highlight! link cssValueTime Green +highlight! link cssValueFrequency Green +highlight! link cssVendor Grey +highlight! link cssNoise Grey +" }}} +" }}} +" SASS: {{{ +" scss-syntax: https://github.com/cakebaker/scss-syntax.vim{{{ +highlight! link scssMixinName Orange +highlight! link scssSelectorChar Orange +highlight! link scssSelectorName Red +highlight! link scssInterpolationDelimiter Yellow +highlight! link scssVariableValue Green +highlight! link scssNull Purple +highlight! link scssBoolean Purple +highlight! link scssVariableAssignment Grey +highlight! link scssAttribute Green +highlight! link scssFunctionName Orange +highlight! link scssVariable Fg +highlight! link scssAmpersand Purple +" }}} +" }}} +" LESS: {{{ +" vim-less: https://github.com/groenewege/vim-less{{{ +highlight! link lessMixinChar Grey +highlight! link lessClass Red +highlight! link lessFunction Orange +" }}} +" }}} +" JavaScript: {{{ +" builtin: http://www.fleiner.com/vim/syntax/javascript.vim{{{ +highlight! link javaScriptNull OrangeItalic +highlight! link javaScriptIdentifier BlueItalic +highlight! link javaScriptParens Fg +highlight! link javaScriptBraces Fg +highlight! link javaScriptNumber Purple +highlight! link javaScriptLabel Red +highlight! link javaScriptGlobal BlueItalic +highlight! link javaScriptMessage BlueItalic +" }}} +" vim-javascript: https://github.com/pangloss/vim-javascript{{{ +highlight! link jsNoise Fg +highlight! link Noise Fg +highlight! link jsParens Fg +highlight! link jsBrackets Fg +highlight! link jsObjectBraces Fg +highlight! link jsThis BlueItalic +highlight! link jsUndefined OrangeItalic +highlight! link jsNull OrangeItalic +highlight! link jsNan OrangeItalic +highlight! link jsSuper OrangeItalic +highlight! link jsPrototype OrangeItalic +highlight! link jsFunction Red +highlight! link jsGlobalNodeObjects BlueItalic +highlight! link jsGlobalObjects BlueItalic +highlight! link jsArrowFunction Red +highlight! link jsArrowFuncArgs Fg +highlight! link jsFuncArgs Fg +highlight! link jsObjectProp Fg +highlight! link jsVariableDef Fg +highlight! link jsObjectKey Fg +highlight! link jsParen Fg +highlight! link jsParenIfElse Fg +highlight! link jsParenRepeat Fg +highlight! link jsParenSwitch Fg +highlight! link jsParenCatch Fg +highlight! link jsBracket Fg +highlight! link jsObjectValue Fg +highlight! link jsDestructuringBlock Fg +highlight! link jsBlockLabel Purple +highlight! link jsFunctionKey Green +highlight! link jsClassDefinition BlueItalic +highlight! link jsDot Orange +highlight! link jsSpreadExpression Purple +highlight! link jsSpreadOperator Green +highlight! link jsModuleKeyword BlueItalic +highlight! link jsTemplateExpression Purple +highlight! link jsTemplateBraces Purple +highlight! link jsClassMethodType BlueItalic +highlight! link jsExceptions BlueItalic +" }}} +" yajs: https://github.com/othree/yajs.vim{{{ +highlight! link javascriptOpSymbol Red +highlight! link javascriptOpSymbols Red +highlight! link javascriptIdentifierName Fg +highlight! link javascriptVariable BlueItalic +highlight! link javascriptObjectLabel Fg +highlight! link javascriptPropertyNameString Fg +highlight! link javascriptFuncArg Fg +highlight! link javascriptObjectLiteral Green +highlight! link javascriptIdentifier OrangeItalic +highlight! link javascriptArrowFunc Red +highlight! link javascriptTemplate Purple +highlight! link javascriptTemplateSubstitution Purple +highlight! link javascriptTemplateSB Purple +highlight! link javascriptNodeGlobal BlueItalic +highlight! link javascriptDocTags RedItalic +highlight! link javascriptDocNotation Blue +highlight! link javascriptClassSuper OrangeItalic +highlight! link javascriptClassName BlueItalic +highlight! link javascriptClassSuperName BlueItalic +highlight! link javascriptOperator Red +highlight! link javascriptBrackets Fg +highlight! link javascriptBraces Fg +highlight! link javascriptLabel Purple +highlight! link javascriptEndColons Grey +highlight! link javascriptObjectLabelColon Grey +highlight! link javascriptDotNotation Orange +highlight! link javascriptGlobalArrayDot Orange +highlight! link javascriptGlobalBigIntDot Orange +highlight! link javascriptGlobalDateDot Orange +highlight! link javascriptGlobalJSONDot Orange +highlight! link javascriptGlobalMathDot Orange +highlight! link javascriptGlobalNumberDot Orange +highlight! link javascriptGlobalObjectDot Orange +highlight! link javascriptGlobalPromiseDot Orange +highlight! link javascriptGlobalRegExpDot Orange +highlight! link javascriptGlobalStringDot Orange +highlight! link javascriptGlobalSymbolDot Orange +highlight! link javascriptGlobalURLDot Orange +highlight! link javascriptMethod Green +highlight! link javascriptMethodName Green +highlight! link javascriptObjectMethodName Green +highlight! link javascriptGlobalMethod Green +highlight! link javascriptDOMStorageMethod Green +highlight! link javascriptFileMethod Green +highlight! link javascriptFileReaderMethod Green +highlight! link javascriptFileListMethod Green +highlight! link javascriptBlobMethod Green +highlight! link javascriptURLStaticMethod Green +highlight! link javascriptNumberStaticMethod Green +highlight! link javascriptNumberMethod Green +highlight! link javascriptDOMNodeMethod Green +highlight! link javascriptES6BigIntStaticMethod Green +highlight! link javascriptBOMWindowMethod Green +highlight! link javascriptHeadersMethod Green +highlight! link javascriptRequestMethod Green +highlight! link javascriptResponseMethod Green +highlight! link javascriptES6SetMethod Green +highlight! link javascriptReflectMethod Green +highlight! link javascriptPaymentMethod Green +highlight! link javascriptPaymentResponseMethod Green +highlight! link javascriptTypedArrayStaticMethod Green +highlight! link javascriptGeolocationMethod Green +highlight! link javascriptES6MapMethod Green +highlight! link javascriptServiceWorkerMethod Green +highlight! link javascriptCacheMethod Green +highlight! link javascriptFunctionMethod Green +highlight! link javascriptXHRMethod Green +highlight! link javascriptBOMNavigatorMethod Green +highlight! link javascriptServiceWorkerMethod Green +highlight! link javascriptDOMEventTargetMethod Green +highlight! link javascriptDOMEventMethod Green +highlight! link javascriptIntlMethod Green +highlight! link javascriptDOMDocMethod Green +highlight! link javascriptStringStaticMethod Green +highlight! link javascriptStringMethod Green +highlight! link javascriptSymbolStaticMethod Green +highlight! link javascriptRegExpMethod Green +highlight! link javascriptObjectStaticMethod Green +highlight! link javascriptObjectMethod Green +highlight! link javascriptBOMLocationMethod Green +highlight! link javascriptJSONStaticMethod Green +highlight! link javascriptGeneratorMethod Green +highlight! link javascriptEncodingMethod Green +highlight! link javascriptPromiseStaticMethod Green +highlight! link javascriptPromiseMethod Green +highlight! link javascriptBOMHistoryMethod Green +highlight! link javascriptDOMFormMethod Green +highlight! link javascriptClipboardMethod Green +highlight! link javascriptTypedArrayStaticMethod Green +highlight! link javascriptBroadcastMethod Green +highlight! link javascriptDateStaticMethod Green +highlight! link javascriptDateMethod Green +highlight! link javascriptConsoleMethod Green +highlight! link javascriptArrayStaticMethod Green +highlight! link javascriptArrayMethod Green +highlight! link javascriptMathStaticMethod Green +highlight! link javascriptSubtleCryptoMethod Green +highlight! link javascriptCryptoMethod Green +highlight! link javascriptProp Fg +highlight! link javascriptBOMWindowProp Fg +highlight! link javascriptDOMStorageProp Fg +highlight! link javascriptFileReaderProp Fg +highlight! link javascriptURLUtilsProp Fg +highlight! link javascriptNumberStaticProp Fg +highlight! link javascriptDOMNodeProp Fg +highlight! link javascriptRequestProp Fg +highlight! link javascriptResponseProp Fg +highlight! link javascriptES6SetProp Fg +highlight! link javascriptPaymentProp Fg +highlight! link javascriptPaymentResponseProp Fg +highlight! link javascriptPaymentAddressProp Fg +highlight! link javascriptPaymentShippingOptionProp Fg +highlight! link javascriptTypedArrayStaticProp Fg +highlight! link javascriptServiceWorkerProp Fg +highlight! link javascriptES6MapProp Fg +highlight! link javascriptRegExpStaticProp Fg +highlight! link javascriptRegExpProp Fg +highlight! link javascriptXHRProp Fg +highlight! link javascriptBOMNavigatorProp Green +highlight! link javascriptDOMEventProp Fg +highlight! link javascriptBOMNetworkProp Fg +highlight! link javascriptDOMDocProp Fg +highlight! link javascriptSymbolStaticProp Fg +highlight! link javascriptSymbolProp Fg +highlight! link javascriptBOMLocationProp Fg +highlight! link javascriptEncodingProp Fg +highlight! link javascriptCryptoProp Fg +highlight! link javascriptBOMHistoryProp Fg +highlight! link javascriptDOMFormProp Fg +highlight! link javascriptDataViewProp Fg +highlight! link javascriptBroadcastProp Fg +highlight! link javascriptMathStaticProp Fg +" }}} +" }}} +" JavaScript React: {{{ +" vim-jsx-pretty: https://github.com/maxmellon/vim-jsx-pretty{{{ +highlight! link jsxTagName RedItalic +highlight! link jsxOpenPunct Green +highlight! link jsxClosePunct Blue +highlight! link jsxEscapeJs Purple +highlight! link jsxAttrib Blue +" }}} +" }}} +" TypeScript: {{{ +" vim-typescript: https://github.com/leafgarland/typescript-vim{{{ +highlight! link typescriptStorageClass Red +highlight! link typescriptEndColons Fg +highlight! link typescriptSource BlueItalic +highlight! link typescriptMessage Green +highlight! link typescriptGlobalObjects BlueItalic +highlight! link typescriptInterpolation Purple +highlight! link typescriptInterpolationDelimiter Purple +highlight! link typescriptBraces Fg +highlight! link typescriptParens Fg +" }}} +" yats: https:github.com/HerringtonDarkholme/yats.vim{{{ +highlight! link typescriptMethodAccessor Red +highlight! link typescriptVariable Red +highlight! link typescriptVariableDeclaration Fg +highlight! link typescriptTypeReference BlueItalic +highlight! link typescriptBraces Fg +highlight! link typescriptEnumKeyword Red +highlight! link typescriptEnum BlueItalic +highlight! link typescriptIdentifierName Fg +highlight! link typescriptProp Fg +highlight! link typescriptCall Fg +highlight! link typescriptInterfaceName BlueItalic +highlight! link typescriptEndColons Fg +highlight! link typescriptMember Fg +highlight! link typescriptMemberOptionality Red +highlight! link typescriptObjectLabel Fg +highlight! link typescriptDefaultParam Fg +highlight! link typescriptArrowFunc Red +highlight! link typescriptAbstract Red +highlight! link typescriptObjectColon Grey +highlight! link typescriptTypeAnnotation Grey +highlight! link typescriptAssign Red +highlight! link typescriptBinaryOp Red +highlight! link typescriptUnaryOp Red +highlight! link typescriptFuncComma Fg +highlight! link typescriptClassName BlueItalic +highlight! link typescriptClassHeritage BlueItalic +highlight! link typescriptInterfaceHeritage BlueItalic +highlight! link typescriptIdentifier OrangeItalic +highlight! link typescriptGlobal BlueItalic +highlight! link typescriptOperator Red +highlight! link typescriptNodeGlobal BlueItalic +highlight! link typescriptExport Red +highlight! link typescriptImport Red +highlight! link typescriptTypeParameter BlueItalic +highlight! link typescriptReadonlyModifier Red +highlight! link typescriptAccessibilityModifier Red +highlight! link typescriptAmbientDeclaration Red +highlight! link typescriptTemplateSubstitution Purple +highlight! link typescriptTemplateSB Purple +highlight! link typescriptExceptions Red +highlight! link typescriptCastKeyword Red +highlight! link typescriptOptionalMark Red +highlight! link typescriptNull OrangeItalic +highlight! link typescriptMappedIn Red +highlight! link typescriptFuncTypeArrow Red +highlight! link typescriptTernaryOp Red +highlight! link typescriptParenExp Fg +highlight! link typescriptIndexExpr Fg +highlight! link typescriptDotNotation Orange +highlight! link typescriptGlobalNumberDot Orange +highlight! link typescriptGlobalStringDot Orange +highlight! link typescriptGlobalArrayDot Orange +highlight! link typescriptGlobalObjectDot Orange +highlight! link typescriptGlobalSymbolDot Orange +highlight! link typescriptGlobalMathDot Orange +highlight! link typescriptGlobalDateDot Orange +highlight! link typescriptGlobalJSONDot Orange +highlight! link typescriptGlobalRegExpDot Orange +highlight! link typescriptGlobalPromiseDot Orange +highlight! link typescriptGlobalURLDot Orange +highlight! link typescriptGlobalMethod Green +highlight! link typescriptDOMStorageMethod Green +highlight! link typescriptFileMethod Green +highlight! link typescriptFileReaderMethod Green +highlight! link typescriptFileListMethod Green +highlight! link typescriptBlobMethod Green +highlight! link typescriptURLStaticMethod Green +highlight! link typescriptNumberStaticMethod Green +highlight! link typescriptNumberMethod Green +highlight! link typescriptDOMNodeMethod Green +highlight! link typescriptPaymentMethod Green +highlight! link typescriptPaymentResponseMethod Green +highlight! link typescriptHeadersMethod Green +highlight! link typescriptRequestMethod Green +highlight! link typescriptResponseMethod Green +highlight! link typescriptES6SetMethod Green +highlight! link typescriptReflectMethod Green +highlight! link typescriptBOMWindowMethod Green +highlight! link typescriptGeolocationMethod Green +highlight! link typescriptServiceWorkerMethod Green +highlight! link typescriptCacheMethod Green +highlight! link typescriptES6MapMethod Green +highlight! link typescriptFunctionMethod Green +highlight! link typescriptRegExpMethod Green +highlight! link typescriptXHRMethod Green +highlight! link typescriptBOMNavigatorMethod Green +highlight! link typescriptServiceWorkerMethod Green +highlight! link typescriptIntlMethod Green +highlight! link typescriptDOMEventTargetMethod Green +highlight! link typescriptDOMEventMethod Green +highlight! link typescriptDOMDocMethod Green +highlight! link typescriptStringStaticMethod Green +highlight! link typescriptStringMethod Green +highlight! link typescriptSymbolStaticMethod Green +highlight! link typescriptObjectStaticMethod Green +highlight! link typescriptObjectMethod Green +highlight! link typescriptJSONStaticMethod Green +highlight! link typescriptEncodingMethod Green +highlight! link typescriptBOMLocationMethod Green +highlight! link typescriptPromiseStaticMethod Green +highlight! link typescriptPromiseMethod Green +highlight! link typescriptSubtleCryptoMethod Green +highlight! link typescriptCryptoMethod Green +highlight! link typescriptBOMHistoryMethod Green +highlight! link typescriptDOMFormMethod Green +highlight! link typescriptConsoleMethod Green +highlight! link typescriptDateStaticMethod Green +highlight! link typescriptDateMethod Green +highlight! link typescriptArrayStaticMethod Green +highlight! link typescriptArrayMethod Green +highlight! link typescriptMathStaticMethod Green +highlight! link typescriptStringProperty Fg +highlight! link typescriptDOMStorageProp Fg +highlight! link typescriptFileReaderProp Fg +highlight! link typescriptURLUtilsProp Fg +highlight! link typescriptNumberStaticProp Fg +highlight! link typescriptDOMNodeProp Fg +highlight! link typescriptBOMWindowProp Fg +highlight! link typescriptRequestProp Fg +highlight! link typescriptResponseProp Fg +highlight! link typescriptPaymentProp Fg +highlight! link typescriptPaymentResponseProp Fg +highlight! link typescriptPaymentAddressProp Fg +highlight! link typescriptPaymentShippingOptionProp Fg +highlight! link typescriptES6SetProp Fg +highlight! link typescriptServiceWorkerProp Fg +highlight! link typescriptES6MapProp Fg +highlight! link typescriptRegExpStaticProp Fg +highlight! link typescriptRegExpProp Fg +highlight! link typescriptBOMNavigatorProp Green +highlight! link typescriptXHRProp Fg +highlight! link typescriptDOMEventProp Fg +highlight! link typescriptDOMDocProp Fg +highlight! link typescriptBOMNetworkProp Fg +highlight! link typescriptSymbolStaticProp Fg +highlight! link typescriptEncodingProp Fg +highlight! link typescriptBOMLocationProp Fg +highlight! link typescriptCryptoProp Fg +highlight! link typescriptDOMFormProp Fg +highlight! link typescriptBOMHistoryProp Fg +highlight! link typescriptMathStaticProp Fg +" }}} +" }}} +" Dart: {{{ +" dart-lang: https://github.com/dart-lang/dart-vim-plugin{{{ +highlight! link dartCoreClasses BlueItalic +highlight! link dartTypeName BlueItalic +highlight! link dartInterpolation Purple +highlight! link dartTypeDef Red +highlight! link dartClassDecl Red +highlight! link dartLibrary Red +highlight! link dartMetadata OrangeItalic +" }}} +" }}} +" C/C++: {{{ +" vim-cpp-enhanced-highlight: https://github.com/octol/vim-cpp-enhanced-highlight{{{ +highlight! link cLabel Red +highlight! link cppSTLnamespace BlueItalic +highlight! link cppSTLtype BlueItalic +highlight! link cppAccess Red +highlight! link cppStructure Red +highlight! link cppSTLios BlueItalic +highlight! link cppSTLiterator BlueItalic +highlight! link cppSTLexception Red +" }}} +" vim-cpp-modern: https://github.com/bfrg/vim-cpp-modern{{{ +highlight! link cppSTLVariable BlueItalic +" }}} +" chromatica: https://github.com/arakashic/chromatica.nvim{{{ +highlight! link Member OrangeItalic +highlight! link Variable Fg +highlight! link Namespace BlueItalic +highlight! link EnumConstant OrangeItalic +highlight! link chromaticaException Red +highlight! link chromaticaCast Red +highlight! link OperatorOverload Red +highlight! link AccessQual Red +highlight! link Linkage Red +highlight! link AutoType BlueItalic +" }}} +" vim-lsp-cxx-highlight https://github.com/jackguo380/vim-lsp-cxx-highlight{{{ +highlight! link LspCxxHlSkippedRegion Grey +highlight! link LspCxxHlSkippedRegionBeginEnd Red +highlight! link LspCxxHlGroupEnumConstant OrangeItalic +highlight! link LspCxxHlGroupNamespace BlueItalic +highlight! link LspCxxHlGroupMemberVariable OrangeItalic +" }}} +" }}} +" ObjectiveC: {{{ +" builtin: {{{ +highlight! link objcModuleImport Red +highlight! link objcException Red +highlight! link objcProtocolList Fg +highlight! link objcDirective Red +highlight! link objcPropertyAttribute Purple +highlight! link objcHiddenArgument Fg +" }}} +" }}} +" C#: {{{ +" builtin: https://github.com/nickspoons/vim-cs{{{ +highlight! link csUnspecifiedStatement Red +highlight! link csStorage Red +highlight! link csClass Red +highlight! link csNewType BlueItalic +highlight! link csContextualStatement Red +highlight! link csInterpolationDelimiter Purple +highlight! link csInterpolation Purple +highlight! link csEndColon Fg +" }}} +" }}} +" Python: {{{ +" builtin: {{{ +highlight! link pythonBuiltin BlueItalic +highlight! link pythonExceptions Red +highlight! link pythonDecoratorName OrangeItalic +" }}} +" python-syntax: https://github.com/vim-python/python-syntax{{{ +highlight! link pythonExClass BlueItalic +highlight! link pythonBuiltinType BlueItalic +highlight! link pythonBuiltinObj OrangeItalic +highlight! link pythonDottedName OrangeItalic +highlight! link pythonBuiltinFunc Green +highlight! link pythonFunction Green +highlight! link pythonDecorator OrangeItalic +highlight! link pythonInclude Include +highlight! link pythonImport PreProc +highlight! link pythonOperator Red +highlight! link pythonConditional Red +highlight! link pythonRepeat Red +highlight! link pythonException Red +highlight! link pythonNone OrangeItalic +highlight! link pythonCoding Grey +highlight! link pythonDot Grey +" }}} +" semshi: https://github.com/numirias/semshi{{{ +call s:HL('semshiUnresolved', s:palette.orange, s:palette.none, 'undercurl') +highlight! link semshiImported BlueItalic +highlight! link semshiParameter OrangeItalic +highlight! link semshiParameterUnused Grey +highlight! link semshiSelf BlueItalic +highlight! link semshiGlobal Green +highlight! link semshiBuiltin Green +highlight! link semshiAttribute OrangeItalic +highlight! link semshiLocal Red +highlight! link semshiFree Red +highlight! link semshiSelected CocHighlightText +highlight! link semshiErrorSign ALEErrorSign +highlight! link semshiErrorChar ALEErrorSign +" }}} +" }}} +" Lua: {{{ +" builtin: {{{ +highlight! link luaFunc Green +highlight! link luaFunction Red +highlight! link luaTable Fg +highlight! link luaIn Red +" }}} +" vim-lua: https://github.com/tbastos/vim-lua{{{ +highlight! link luaFuncCall Green +highlight! link luaLocal Red +highlight! link luaSpecialValue Green +highlight! link luaBraces Fg +highlight! link luaBuiltIn BlueItalic +highlight! link luaNoise Grey +highlight! link luaLabel Purple +highlight! link luaFuncTable BlueItalic +highlight! link luaFuncArgName Fg +highlight! link luaEllipsis Red +highlight! link luaDocTag Green +" }}} +" }}} +" Java: {{{ +" builtin: {{{ +highlight! link javaClassDecl Red +highlight! link javaMethodDecl Red +highlight! link javaVarArg Fg +highlight! link javaAnnotation Purple +highlight! link javaUserLabel Purple +highlight! link javaTypedef OrangeItalic +highlight! link javaParen Fg +highlight! link javaParen1 Fg +highlight! link javaParen2 Fg +highlight! link javaParen3 Fg +highlight! link javaParen4 Fg +highlight! link javaParen5 Fg +" }}} +" }}} +" Kotlin: {{{ +" kotlin-vim: https://github.com/udalov/kotlin-vim{{{ +highlight! link ktSimpleInterpolation Purple +highlight! link ktComplexInterpolation Purple +highlight! link ktComplexInterpolationBrace Purple +highlight! link ktStructure Red +highlight! link ktKeyword OrangeItalic +" }}} +" }}} +" Scala: {{{ +" builtin: https://github.com/derekwyatt/vim-scala{{{ +highlight! link scalaNameDefinition Fg +highlight! link scalaInterpolationBoundary Purple +highlight! link scalaInterpolation Purple +highlight! link scalaTypeOperator Red +highlight! link scalaOperator Red +highlight! link scalaKeywordModifier Red +" }}} +" }}} +" Go: {{{ +" builtin: https://github.com/google/vim-ft-go{{{ +highlight! link goDirective Red +highlight! link goConstants OrangeItalic +highlight! link goDeclType Red +" }}} +" polyglot: {{{ +highlight! link goPackage Red +highlight! link goImport Red +highlight! link goBuiltins Green +highlight! link goPredefinedIdentifiers OrangeItalic +highlight! link goVar Red +" }}} +" }}} +" Rust: {{{ +" builtin: https://github.com/rust-lang/rust.vim{{{ +highlight! link rustStructure Red +highlight! link rustIdentifier OrangeItalic +highlight! link rustModPath BlueItalic +highlight! link rustModPathSep Grey +highlight! link rustSelf OrangeItalic +highlight! link rustSuper OrangeItalic +highlight! link rustDeriveTrait Purple +highlight! link rustEnumVariant Purple +highlight! link rustMacroVariable OrangeItalic +highlight! link rustAssert Green +highlight! link rustPanic Green +highlight! link rustPubScopeCrate BlueItalic +highlight! link rustAttribute Purple +" }}} +" }}} +" Swift: {{{ +" swift.vim: https://github.com/keith/swift.vim{{{ +highlight! link swiftInterpolatedWrapper Purple +highlight! link swiftInterpolatedString Purple +highlight! link swiftProperty Fg +highlight! link swiftTypeDeclaration Red +highlight! link swiftClosureArgument OrangeItalic +highlight! link swiftStructure Red +" }}} +" }}} +" PHP: {{{ +" builtin: https://jasonwoof.com/gitweb/?p=vim-syntax.git;a=blob;f=php.vim;hb=HEAD{{{ +highlight! link phpVarSelector Fg +highlight! link phpIdentifier Fg +highlight! link phpDefine Green +highlight! link phpStructure Red +highlight! link phpSpecialFunction Green +highlight! link phpInterpSimpleCurly Purple +highlight! link phpComparison Red +highlight! link phpMethodsVar Fg +highlight! link phpInterpVarname Fg +highlight! link phpMemberSelector Red +highlight! link phpLabel Red +" }}} +" php.vim: https://github.com/StanAngeloff/php.vim{{{ +highlight! link phpParent Fg +highlight! link phpNowDoc Yellow +highlight! link phpFunction Green +highlight! link phpMethod Green +highlight! link phpClass BlueItalic +highlight! link phpSuperglobals BlueItalic +highlight! link phpNullValue OrangeItalic +" }}} +" }}} +" Ruby: {{{ +" builtin: https://github.com/vim-ruby/vim-ruby{{{ +highlight! link rubyKeywordAsMethod Green +highlight! link rubyInterpolation Purple +highlight! link rubyInterpolationDelimiter Purple +highlight! link rubyStringDelimiter Yellow +highlight! link rubyBlockParameterList Fg +highlight! link rubyDefine Red +highlight! link rubyModuleName Red +highlight! link rubyAccess Red +highlight! link rubyMacro Red +highlight! link rubySymbol Fg +" }}} +" }}} +" Haskell: {{{ +" haskell-vim: https://github.com/neovimhaskell/haskell-vim{{{ +highlight! link haskellBrackets Fg +highlight! link haskellIdentifier OrangeItalic +highlight! link haskellDecl Red +highlight! link haskellType BlueItalic +highlight! link haskellDeclKeyword Red +highlight! link haskellWhere Red +highlight! link haskellDeriving Red +highlight! link haskellForeignKeywords Red +" }}} +" }}} +" Perl: {{{ +" builtin: https://github.com/vim-perl/vim-perl{{{ +highlight! link perlStatementPackage Red +highlight! link perlStatementInclude Red +highlight! link perlStatementStorage Red +highlight! link perlStatementList Red +highlight! link perlMatchStartEnd Red +highlight! link perlVarSimpleMemberName Green +highlight! link perlVarSimpleMember Fg +highlight! link perlMethod Green +highlight! link podVerbatimLine Green +highlight! link podCmdText Yellow +highlight! link perlVarPlain Fg +highlight! link perlVarPlain2 Fg +" }}} +" }}} +" OCaml: {{{ +" builtin: https://github.com/rgrinberg/vim-ocaml{{{ +highlight! link ocamlArrow Red +highlight! link ocamlEqual Red +highlight! link ocamlOperator Red +highlight! link ocamlKeyChar Red +highlight! link ocamlModPath Green +highlight! link ocamlFullMod Green +highlight! link ocamlModule BlueItalic +highlight! link ocamlConstructor Orange +highlight! link ocamlModParam Fg +highlight! link ocamlModParam1 Fg +highlight! link ocamlAnyVar Fg " aqua +highlight! link ocamlPpxEncl Red +highlight! link ocamlPpxIdentifier Fg +highlight! link ocamlSigEncl Red +highlight! link ocamlModParam1 Fg +" }}} +" }}} +" Erlang: {{{ +" builtin: https://github.com/vim-erlang/vim-erlang-runtime{{{ +highlight! link erlangAtom Fg +highlight! link erlangVariable Fg +highlight! link erlangLocalFuncRef Green +highlight! link erlangLocalFuncCall Green +highlight! link erlangGlobalFuncRef Green +highlight! link erlangGlobalFuncCall Green +highlight! link erlangAttribute BlueItalic +highlight! link erlangPipe Red +" }}} +" }}} +" Elixir: {{{ +" vim-elixir: https://github.com/elixir-editors/vim-elixir{{{ +highlight! link elixirStringDelimiter Yellow +highlight! link elixirKeyword Red +highlight! link elixirInterpolation Purple +highlight! link elixirInterpolationDelimiter Purple +highlight! link elixirSelf BlueItalic +highlight! link elixirPseudoVariable OrangeItalic +highlight! link elixirModuleDefine Red +highlight! link elixirBlockDefinition Red +highlight! link elixirDefine Red +highlight! link elixirPrivateDefine Red +highlight! link elixirGuard Red +highlight! link elixirPrivateGuard Red +highlight! link elixirProtocolDefine Red +highlight! link elixirImplDefine Red +highlight! link elixirRecordDefine Red +highlight! link elixirPrivateRecordDefine Red +highlight! link elixirMacroDefine Red +highlight! link elixirPrivateMacroDefine Red +highlight! link elixirDelegateDefine Red +highlight! link elixirOverridableDefine Red +highlight! link elixirExceptionDefine Red +highlight! link elixirCallbackDefine Red +highlight! link elixirStructDefine Red +highlight! link elixirExUnitMacro Red +" }}} +" }}} +" Common Lisp: {{{ +" builtin: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_LISP{{{ +highlight! link lispAtomMark Purple +highlight! link lispKey Orange +highlight! link lispFunc Green +" }}} +" }}} +" Clojure: {{{ +" builtin: https://github.com/guns/vim-clojure-static{{{ +highlight! link clojureMacro Red +highlight! link clojureFunc Green +highlight! link clojureConstant OrangeItalic +highlight! link clojureSpecial Red +highlight! link clojureDefine Red +highlight! link clojureKeyword Blue +highlight! link clojureVariable Fg +highlight! link clojureMeta Purple +highlight! link clojureDeref Purple +" }}} +" }}} +" Matlab: {{{ +" builtin: {{{ +highlight! link matlabSemicolon Fg +highlight! link matlabFunction RedItalic +highlight! link matlabImplicit Green +highlight! link matlabDelimiter Fg +highlight! link matlabOperator Green +highlight! link matlabArithmeticOperator Red +highlight! link matlabArithmeticOperator Red +highlight! link matlabRelationalOperator Red +highlight! link matlabRelationalOperator Red +highlight! link matlabLogicalOperator Red +" }}} +" }}} +" Shell: {{{ +" builtin: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH{{{ +highlight! link shRange Fg +highlight! link shOption Purple +highlight! link shQuote Yellow +highlight! link shVariable BlueItalic +highlight! link shDerefSimple BlueItalic +highlight! link shDerefVar BlueItalic +highlight! link shDerefSpecial BlueItalic +highlight! link shDerefOff BlueItalic +highlight! link shVarAssign Red +highlight! link shFunctionOne Green +highlight! link shFunctionKey Red +" }}} +" }}} +" Zsh: {{{ +" builtin: https://github.com/chrisbra/vim-zsh{{{ +highlight! link zshOption BlueItalic +highlight! link zshSubst Orange +highlight! link zshFunction Green +" }}} +" }}} +" PowerShell: {{{ +" vim-ps1: https://github.com/PProvost/vim-ps1{{{ +highlight! link ps1FunctionInvocation Green +highlight! link ps1FunctionDeclaration Green +highlight! link ps1InterpolationDelimiter Purple +highlight! link ps1BuiltIn BlueItalic +" }}} +" }}} +" VimL: {{{ +highlight! link vimLet Red +highlight! link vimFunction Green +highlight! link vimIsCommand Fg +highlight! link vimUserFunc Green +highlight! link vimFuncName Green +highlight! link vimMap BlueItalic +highlight! link vimNotation Purple +highlight! link vimMapLhs Green +highlight! link vimMapRhs Green +highlight! link vimSetEqual BlueItalic +highlight! link vimSetSep Fg +highlight! link vimOption BlueItalic +highlight! link vimUserAttrbKey BlueItalic +highlight! link vimUserAttrb Green +highlight! link vimAutoCmdSfxList Orange +highlight! link vimSynType Orange +highlight! link vimHiBang Orange +highlight! link vimSet BlueItalic +highlight! link vimSetSep Grey +" }}} +" Makefile: {{{ +highlight! link makeIdent Purple +highlight! link makeSpecTarget BlueItalic +highlight! link makeTarget Orange +highlight! link makeCommands Red +" }}} +" CMake: {{{ +highlight! link cmakeCommand Red +highlight! link cmakeKWconfigure_package_config_file BlueItalic +highlight! link cmakeKWwrite_basic_package_version_file BlueItalic +highlight! link cmakeKWExternalProject Green +highlight! link cmakeKWadd_compile_definitions Green +highlight! link cmakeKWadd_compile_options Green +highlight! link cmakeKWadd_custom_command Green +highlight! link cmakeKWadd_custom_target Green +highlight! link cmakeKWadd_definitions Green +highlight! link cmakeKWadd_dependencies Green +highlight! link cmakeKWadd_executable Green +highlight! link cmakeKWadd_library Green +highlight! link cmakeKWadd_link_options Green +highlight! link cmakeKWadd_subdirectory Green +highlight! link cmakeKWadd_test Green +highlight! link cmakeKWbuild_command Green +highlight! link cmakeKWcmake_host_system_information Green +highlight! link cmakeKWcmake_minimum_required Green +highlight! link cmakeKWcmake_parse_arguments Green +highlight! link cmakeKWcmake_policy Green +highlight! link cmakeKWconfigure_file Green +highlight! link cmakeKWcreate_test_sourcelist Green +highlight! link cmakeKWctest_build Green +highlight! link cmakeKWctest_configure Green +highlight! link cmakeKWctest_coverage Green +highlight! link cmakeKWctest_memcheck Green +highlight! link cmakeKWctest_run_script Green +highlight! link cmakeKWctest_start Green +highlight! link cmakeKWctest_submit Green +highlight! link cmakeKWctest_test Green +highlight! link cmakeKWctest_update Green +highlight! link cmakeKWctest_upload Green +highlight! link cmakeKWdefine_property Green +highlight! link cmakeKWdoxygen_add_docs Green +highlight! link cmakeKWenable_language Green +highlight! link cmakeKWenable_testing Green +highlight! link cmakeKWexec_program Green +highlight! link cmakeKWexecute_process Green +highlight! link cmakeKWexport Green +highlight! link cmakeKWexport_library_dependencies Green +highlight! link cmakeKWfile Green +highlight! link cmakeKWfind_file Green +highlight! link cmakeKWfind_library Green +highlight! link cmakeKWfind_package Green +highlight! link cmakeKWfind_path Green +highlight! link cmakeKWfind_program Green +highlight! link cmakeKWfltk_wrap_ui Green +highlight! link cmakeKWforeach Green +highlight! link cmakeKWfunction Green +highlight! link cmakeKWget_cmake_property Green +highlight! link cmakeKWget_directory_property Green +highlight! link cmakeKWget_filename_component Green +highlight! link cmakeKWget_property Green +highlight! link cmakeKWget_source_file_property Green +highlight! link cmakeKWget_target_property Green +highlight! link cmakeKWget_test_property Green +highlight! link cmakeKWif Green +highlight! link cmakeKWinclude Green +highlight! link cmakeKWinclude_directories Green +highlight! link cmakeKWinclude_external_msproject Green +highlight! link cmakeKWinclude_guard Green +highlight! link cmakeKWinstall Green +highlight! link cmakeKWinstall_files Green +highlight! link cmakeKWinstall_programs Green +highlight! link cmakeKWinstall_targets Green +highlight! link cmakeKWlink_directories Green +highlight! link cmakeKWlist Green +highlight! link cmakeKWload_cache Green +highlight! link cmakeKWload_command Green +highlight! link cmakeKWmacro Green +highlight! link cmakeKWmark_as_advanced Green +highlight! link cmakeKWmath Green +highlight! link cmakeKWmessage Green +highlight! link cmakeKWoption Green +highlight! link cmakeKWproject Green +highlight! link cmakeKWqt_wrap_cpp Green +highlight! link cmakeKWqt_wrap_ui Green +highlight! link cmakeKWremove Green +highlight! link cmakeKWseparate_arguments Green +highlight! link cmakeKWset Green +highlight! link cmakeKWset_directory_properties Green +highlight! link cmakeKWset_property Green +highlight! link cmakeKWset_source_files_properties Green +highlight! link cmakeKWset_target_properties Green +highlight! link cmakeKWset_tests_properties Green +highlight! link cmakeKWsource_group Green +highlight! link cmakeKWstring Green +highlight! link cmakeKWsubdirs Green +highlight! link cmakeKWtarget_compile_definitions Green +highlight! link cmakeKWtarget_compile_features Green +highlight! link cmakeKWtarget_compile_options Green +highlight! link cmakeKWtarget_include_directories Green +highlight! link cmakeKWtarget_link_directories Green +highlight! link cmakeKWtarget_link_libraries Green +highlight! link cmakeKWtarget_link_options Green +highlight! link cmakeKWtarget_precompile_headers Green +highlight! link cmakeKWtarget_sources Green +highlight! link cmakeKWtry_compile Green +highlight! link cmakeKWtry_run Green +highlight! link cmakeKWunset Green +highlight! link cmakeKWuse_mangled_mesa Green +highlight! link cmakeKWvariable_requires Green +highlight! link cmakeKWvariable_watch Green +highlight! link cmakeKWwrite_file Green +" }}} +" Json: {{{ +highlight! link jsonKeyword Red +highlight! link jsonString Green +highlight! link jsonBoolean Blue +highlight! link jsonNoise Grey +highlight! link jsonQuote Grey +highlight! link jsonBraces Fg +" }}} +" Yaml: {{{ +highlight! link yamlKey Red +highlight! link yamlConstant BlueItalic +highlight! link yamlString Green +" }}} +" Toml: {{{ +call s:HL('tomlTable', s:palette.purple, s:palette.none, 'bold') +highlight! link tomlKey Red +highlight! link tomlBoolean Blue +highlight! link tomlString Green +highlight! link tomlTableArray tomlTable +" }}} +" Diff: {{{ +highlight! link diffAdded Green +highlight! link diffRemoved Red +highlight! link diffChanged Blue +highlight! link diffOldFile Yellow +highlight! link diffNewFile Orange +highlight! link diffFile Purple +highlight! link diffLine Grey +highlight! link diffIndexLine Purple +" }}} +" Git Commit: {{{ +highlight! link gitcommitSummary Red +highlight! link gitcommitUntracked Grey +highlight! link gitcommitDiscarded Grey +highlight! link gitcommitSelected Grey +highlight! link gitcommitUnmerged Grey +highlight! link gitcommitOnBranch Grey +highlight! link gitcommitArrow Grey +highlight! link gitcommitFile Green +" }}} +" INI: {{{ +call s:HL('dosiniHeader', s:palette.red, s:palette.none, 'bold') +highlight! link dosiniLabel Blue +highlight! link dosiniValue Green +highlight! link dosiniNumber Green +" }}} +" Help: {{{ +call s:HL('helpNote', s:palette.purple, s:palette.none, 'bold') +call s:HL('helpHeadline', s:palette.red, s:palette.none, 'bold') +call s:HL('helpHeader', s:palette.orange, s:palette.none, 'bold') +call s:HL('helpURL', s:palette.green, s:palette.none, 'underline') +call s:HL('helpHyperTextEntry', s:palette.blue, s:palette.none, 'bold') +highlight! link helpHyperTextJump Blue +highlight! link helpCommand Yellow +highlight! link helpExample Green +highlight! link helpSpecial Purple +highlight! link helpSectionDelim Grey +" }}} +" }}} +" Plugins: {{{ +" junegunn/vim-plug{{{ +call s:HL('plug1', s:palette.red, s:palette.none, 'bold') +call s:HL('plugNumber', s:palette.yellow, s:palette.none, 'bold') +highlight! link plug2 Blue +highlight! link plugBracket Blue +highlight! link plugName Green +highlight! link plugDash Red +highlight! link plugNotLoaded Grey +highlight! link plugH2 Purple +highlight! link plugMessage Purple +highlight! link plugError Red +highlight! link plugRelDate Grey +highlight! link plugStar Purple +highlight! link plugUpdate Blue +highlight! link plugDeleted Grey +highlight! link plugEdge Purple +" }}} +" neoclide/coc.nvim{{{ +if s:configuration.current_word ==# 'bold' + call s:HL('CocHighlightText', s:palette.none, s:palette.none, 'bold') +elseif s:configuration.current_word ==# 'underline' + call s:HL('CocHighlightText', s:palette.none, s:palette.none, 'underline') +elseif s:configuration.current_word ==# 'italic' + call s:HL('CocHighlightText', s:palette.none, s:palette.none, 'italic') +elseif s:configuration.current_word ==# 'grey background' + call s:HL('CocHighlightText', s:palette.none, s:palette.bg1) +endif +call s:HL('CocHoverRange', s:palette.none, s:palette.none, 'bold,underline') +call s:HL('CocHintHighlight', s:palette.none, s:palette.none, 'undercurl', s:palette.green) +call s:HL('CocErrorFloat', s:palette.red, s:palette.bg2) +call s:HL('CocWarningFloat', s:palette.yellow, s:palette.bg2) +call s:HL('CocInfoFloat', s:palette.blue, s:palette.bg2) +call s:HL('CocHintFloat', s:palette.green, s:palette.bg2) +if s:configuration.transparent_background + call s:HL('CocHintSign', s:palette.purple, s:palette.none) +else + call s:HL('CocHintSign', s:palette.purple, s:palette.bg1) +endif +highlight! link CocCodeLens Grey +highlight! link CocErrorSign ALEErrorSign +highlight! link CocWarningSign ALEWarningSign +highlight! link CocInfoSign ALEInfoSign +highlight! link CocHintSign Label +highlight! link CocErrorHighlight ALEError +highlight! link CocWarningHighlight ALEWarning +highlight! link CocInfoHighlight ALEInfo +highlight! link CocWarningVirtualText ALEVirtualTextWarning +highlight! link CocErrorVirtualText ALEVirtualTextError +highlight! link CocInfoVirtualText ALEVirtualTextInfo +highlight! link CocHintVirtualText ALEVirtualTextInfo +highlight! link CocGitAddedSign GitGutterAdd +highlight! link CocGitChangeRemovedSign GitGutterChangeDelete +highlight! link CocGitChangedSign GitGutterChange +highlight! link CocGitRemovedSign GitGutterDelete +highlight! link CocGitTopRemovedSign GitGutterDelete +highlight! link CocExplorerBufferRoot Red +highlight! link CocExplorerBufferExpandIcon Blue +highlight! link CocExplorerBufferBufnr Yellow +highlight! link CocExplorerBufferModified Red +highlight! link CocExplorerBufferBufname Grey +highlight! link CocExplorerBufferFullpath Grey +highlight! link CocExplorerFileRoot Red +highlight! link CocExplorerFileExpandIcon Blue +highlight! link CocExplorerFileFullpath Grey +highlight! link CocExplorerFileDirectory Green +highlight! link CocExplorerFileGitStage Blue +highlight! link CocExplorerFileGitUnstage Yellow +highlight! link CocExplorerFileSize Blue +highlight! link CocExplorerTimeAccessed Purple +highlight! link CocExplorerTimeCreated Purple +highlight! link CocExplorerTimeModified Purple +highlight! link CocExplorerFileRootName Orange +highlight! link CocExplorerBufferNameVisible Green +" }}} +" dense-analysis/ale{{{ +call s:HL('ALEError', s:palette.none, s:palette.none, 'undercurl', s:palette.red) +call s:HL('ALEWarning', s:palette.none, s:palette.none, 'undercurl', s:palette.yellow) +call s:HL('ALEInfo', s:palette.none, s:palette.none, 'undercurl', s:palette.blue) +if s:configuration.transparent_background + call s:HL('ALEErrorSign', s:palette.red, s:palette.none) + call s:HL('ALEWarningSign', s:palette.yellow, s:palette.none) + call s:HL('ALEInfoSign', s:palette.blue, s:palette.none) +else + call s:HL('ALEErrorSign', s:palette.red, s:palette.bg1) + call s:HL('ALEWarningSign', s:palette.yellow, s:palette.bg1) + call s:HL('ALEInfoSign', s:palette.blue, s:palette.bg1) +endif +highlight! link ALEVirtualTextError Grey +highlight! link ALEVirtualTextWarning Grey +highlight! link ALEVirtualTextInfo Grey +highlight! link ALEVirtualTextStyleError ALEVirtualTextError +highlight! link ALEVirtualTextStyleWarning ALEVirtualTextWarning +" }}} +" neomake/neomake{{{ +highlight! link NeomakeError ALEError +highlight! link NeomakeErrorSign ALEErrorSign +highlight! link NeomakeWarning ALEWarning +highlight! link NeomakeWarningSign ALEWarningSign +highlight! link NeomakeInfo ALEInfo +highlight! link NeomakeInfoSign ALEInfoSign +highlight! link NeomakeMessage ALEInfo +highlight! link NeomakeMessageSign CocHintSign +highlight! link NeomakeVirtualtextError Grey +highlight! link NeomakeVirtualtextWarning Grey +highlight! link NeomakeVirtualtextInfo Grey +highlight! link NeomakeVirtualtextMessag Grey +" }}} +" vim-syntastic/syntastic{{{ +highlight! link SyntasticError ALEError +highlight! link SyntasticWarning ALEWarning +highlight! link SyntasticErrorSign ALEErrorSign +highlight! link SyntasticWarningSign ALEWarningSign +" }}} +" Yggdroot/LeaderF{{{ +if !exists('g:Lf_StlColorscheme') + let g:Lf_StlColorscheme = 'one' +endif +call s:HL('Lf_hl_match', s:palette.green, s:palette.none, 'bold') +call s:HL('Lf_hl_match0', s:palette.green, s:palette.none, 'bold') +call s:HL('Lf_hl_match1', s:palette.blue, s:palette.none, 'bold') +call s:HL('Lf_hl_match2', s:palette.red, s:palette.none, 'bold') +call s:HL('Lf_hl_match3', s:palette.yellow, s:palette.none, 'bold') +call s:HL('Lf_hl_match4', s:palette.purple, s:palette.none, 'bold') +call s:HL('Lf_hl_matchRefine', s:palette.yellow, s:palette.none, 'bold') +highlight! link Lf_hl_cursorline Fg +highlight! link Lf_hl_selection DiffAdd +highlight! link Lf_hl_rgHighlight Visual +highlight! link Lf_hl_gtagsHighlight Visual +" }}} +" junegunn/fzf.vim{{{ +let g:fzf_colors = { + \ 'fg': ['fg', 'Normal'], + \ 'bg': ['bg', 'Normal'], + \ 'hl': ['fg', 'Green'], + \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], + \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], + \ 'hl+': ['fg', 'Green'], + \ 'info': ['fg', 'Yellow'], + \ 'prompt': ['fg', 'Red'], + \ 'pointer': ['fg', 'Blue'], + \ 'marker': ['fg', 'Blue'], + \ 'spinner': ['fg', 'Yellow'], + \ 'header': ['fg', 'Blue'] + \ } +" }}} +" Shougo/denite.nvim{{{ +call s:HL('deniteMatchedChar', s:palette.green, s:palette.none, 'bold') +call s:HL('deniteMatchedRange', s:palette.green, s:palette.none, 'bold,underline') +call s:HL('deniteInput', s:palette.green, s:palette.bg1, 'bold') +call s:HL('deniteStatusLineNumber', s:palette.purple, s:palette.bg1) +call s:HL('deniteStatusLinePath', s:palette.fg, s:palette.bg1) +highlight! link deniteSelectedLine Green +" }}} +" kien/ctrlp.vim{{{ +call s:HL('CtrlPMatch', s:palette.green, s:palette.none, 'bold') +call s:HL('CtrlPPrtBase', s:palette.grey, s:palette.none) +call s:HL('CtrlPLinePre', s:palette.grey, s:palette.none) +call s:HL('CtrlPMode1', s:palette.blue, s:palette.bg1, 'bold') +call s:HL('CtrlPMode2', s:palette.bg1, s:palette.blue, 'bold') +call s:HL('CtrlPStats', s:palette.grey, s:palette.bg1, 'bold') +highlight! link CtrlPNoEntries Red +highlight! link CtrlPPrtCursor Blue +" }}} +" majutsushi/tagbar{{{ +highlight! link TagbarFoldIcon Blue +highlight! link TagbarSignature Green +highlight! link TagbarKind Red +highlight! link TagbarScope Orange +highlight! link TagbarNestedKind Blue +highlight! link TagbarVisibilityPrivate Red +highlight! link TagbarVisibilityPublic Blue +" }}} +" liuchengxu/vista.vim{{{ +highlight! link VistaBracket Grey +highlight! link VistaChildrenNr Yellow +highlight! link VistaScope Red +highlight! link VistaTag Green +highlight! link VistaPrefix Grey +highlight! link VistaColon Green +highlight! link VistaIcon Purple +highlight! link VistaLineNr Fg +" }}} +" airblade/vim-gitgutter{{{ +if s:configuration.transparent_background + call s:HL('GitGutterAdd', s:palette.green, s:palette.none) + call s:HL('GitGutterChange', s:palette.blue, s:palette.none) + call s:HL('GitGutterDelete', s:palette.red, s:palette.none) + call s:HL('GitGutterChangeDelete', s:palette.purple, s:palette.none) +else + call s:HL('GitGutterAdd', s:palette.green, s:palette.bg1) + call s:HL('GitGutterChange', s:palette.blue, s:palette.bg1) + call s:HL('GitGutterDelete', s:palette.red, s:palette.bg1) + call s:HL('GitGutterChangeDelete', s:palette.purple, s:palette.bg1) +endif +" }}} +" mhinz/vim-signify{{{ +highlight! link SignifySignAdd GitGutterAdd +highlight! link SignifySignChange GitGutterChange +highlight! link SignifySignDelete GitGutterDelete +highlight! link SignifySignChangeDelete GitGutterChangeDelete +" }}} +" scrooloose/nerdtree{{{ +highlight! link NERDTreeDir Green +highlight! link NERDTreeDirSlash Green +highlight! link NERDTreeOpenable Blue +highlight! link NERDTreeClosable Blue +highlight! link NERDTreeFile Fg +highlight! link NERDTreeExecFile Red +highlight! link NERDTreeUp Grey +highlight! link NERDTreeCWD Purple +highlight! link NERDTreeHelp Grey +highlight! link NERDTreeToggleOn Green +highlight! link NERDTreeToggleOff Red +highlight! link NERDTreeFlags Blue +highlight! link NERDTreeLinkFile Grey +highlight! link NERDTreeLinkTarget Green +" }}} +" justinmk/vim-dirvish{{{ +highlight! link DirvishPathTail Blue +highlight! link DirvishArg Yellow +" }}} +" vim.org/netrw {{{ +" https://www.vim.org/scripts/script.php?script_id=1075 +highlight! link netrwDir Green +highlight! link netrwClassify Green +highlight! link netrwLink Grey +highlight! link netrwSymLink Fg +highlight! link netrwExe Red +highlight! link netrwComment Grey +highlight! link netrwList Yellow +highlight! link netrwHelpCmd Blue +highlight! link netrwCmdSep Grey +highlight! link netrwVersion Purple +" }}} +" andymass/vim-matchup{{{ +call s:HL('MatchParenCur', s:palette.none, s:palette.none, 'bold') +call s:HL('MatchWord', s:palette.none, s:palette.none, 'underline') +call s:HL('MatchWordCur', s:palette.none, s:palette.none, 'underline') +" }}} +" easymotion/vim-easymotion {{{ +highlight! link EasyMotionTarget Search +highlight! link EasyMotionShade Grey +" }}} +" justinmk/vim-sneak {{{ +highlight! link Sneak Cursor +highlight! link SneakLabel Cursor +highlight! link SneakScope DiffAdd +" }}} +" terryma/vim-multiple-cursors{{{ +highlight! link multiple_cursors_cursor Cursor +highlight! link multiple_cursors_visual Visual +" }}} +" mg979/vim-visual-multi{{{ +let g:VM_Mono_hl = 'Cursor' +let g:VM_Extend_hl = 'Visual' +let g:VM_Cursor_hl = 'Cursor' +let g:VM_Insert_hl = 'Cursor' +" }}} +" dominikduda/vim_current_word{{{ +highlight! link CurrentWord CocHighlightText +highlight! link CurrentWordTwins CocHighlightText +" }}} +" RRethy/vim-illuminate{{{ +highlight! link illuminatedWord CocHighlightText +" }}} +" itchyny/vim-cursorword{{{ +highlight! link CursorWord0 CocHighlightText +highlight! link CursorWord1 CocHighlightText +" }}} +" Yggdroot/indentLine{{{ +let g:indentLine_color_gui = s:palette.grey[0] +let g:indentLine_color_term = s:palette.grey[1] +" }}} +" nathanaelkane/vim-indent-guides{{{ +if get(g:, 'indent_guides_auto_colors', 1) == 0 + call s:HL('IndentGuidesOdd', s:palette.bg0, s:palette.bg1) + call s:HL('IndentGuidesEven', s:palette.bg0, s:palette.bg2) +endif +" }}} +" kshenoy/vim-signature {{{ +if s:configuration.transparent_background + call s:HL('SignatureMarkText', s:palette.blue, s:palette.none) + call s:HL('SignatureMarkerText', s:palette.red, s:palette.none) +else + call s:HL('SignatureMarkText', s:palette.blue, s:palette.bg1) + call s:HL('SignatureMarkerText', s:palette.red, s:palette.bg1) +endif +" }}} +" mhinz/vim-startify{{{ +highlight! link StartifyBracket Grey +highlight! link StartifyFile Green +highlight! link StartifyNumber Orange +highlight! link StartifyPath Grey +highlight! link StartifySlash Grey +highlight! link StartifySection Blue +highlight! link StartifyHeader Red +highlight! link StartifySpecial Grey +" }}} +" ap/vim-buftabline{{{ +highlight! link BufTabLineCurrent TabLineSel +highlight! link BufTabLineActive TabLine +highlight! link BufTabLineHidden TabLineFill +highlight! link BufTabLineFill TabLineFill +" }}} +" liuchengxu/vim-which-key{{{ +highlight! link WhichKey Red +highlight! link WhichKeySeperator Green +highlight! link WhichKeyGroup Orange +highlight! link WhichKeyDesc Blue +" }}} +" skywind3000/quickmenu.vim{{{ +highlight! link QuickmenuOption Green +highlight! link QuickmenuNumber Orange +highlight! link QuickmenuBracket Grey +highlight! link QuickmenuHelp Blue +highlight! link QuickmenuSpecial Grey +highlight! link QuickmenuHeader Purple +" }}} +" mbbill/undotree{{{ +call s:HL('UndotreeSavedBig', s:palette.red, s:palette.none, 'bold') +highlight! link UndotreeNode Blue +highlight! link UndotreeNodeCurrent Purple +highlight! link UndotreeSeq Green +highlight! link UndotreeCurrent Blue +highlight! link UndotreeNext Yellow +highlight! link UndotreeTimeStamp Grey +highlight! link UndotreeHead Purple +highlight! link UndotreeBranch Blue +highlight! link UndotreeSavedSmall Red +" }}} +" unblevable/quick-scope {{{ +call s:HL('QuickScopePrimary', s:palette.green, s:palette.none, 'underline') +call s:HL('QuickScopeSecondary', s:palette.blue, s:palette.none, 'underline') +" }}} +" APZelos/blamer.nvim {{{ +highlight! link Blamer Grey +" }}} +" cohama/agit.vim {{{ +highlight! link agitTree Grey +highlight! link agitDate Green +highlight! link agitRemote Red +highlight! link agitHead Blue +highlight! link agitRef Orange +highlight! link agitTag Blue +highlight! link agitStatFile Blue +highlight! link agitStatRemoved Red +highlight! link agitStatAdded Green +highlight! link agitStatMessage Orange +highlight! link agitDiffRemove diffRemoved +highlight! link agitDiffAdd diffAdded +highlight! link agitDiffHeader Blue +highlight! link agitAuthor Yellow +" }}} +" }}} +" Terminal: {{{ +if (has('termguicolors') && &termguicolors) || has('gui_running') + " Definition + let s:terminal = { + \ 'black': s:palette.black, + \ 'red': s:palette.red, + \ 'yellow': s:palette.yellow, + \ 'green': s:palette.green, + \ 'cyan': s:palette.orange, + \ 'blue': s:palette.blue, + \ 'purple': s:palette.purple, + \ 'white': s:palette.fg + \ } + " Implementation: {{{ + if !has('nvim') + let g:terminal_ansi_colors = [s:terminal.black[0], s:terminal.red[0], s:terminal.green[0], s:terminal.yellow[0], + \ s:terminal.blue[0], s:terminal.purple[0], s:terminal.cyan[0], s:terminal.white[0], s:terminal.black[0], s:terminal.red[0], + \ s:terminal.green[0], s:terminal.yellow[0], s:terminal.blue[0], s:terminal.purple[0], s:terminal.cyan[0], s:terminal.white[0]] + else + let g:terminal_color_0 = s:terminal.black[0] + let g:terminal_color_1 = s:terminal.red[0] + let g:terminal_color_2 = s:terminal.green[0] + let g:terminal_color_3 = s:terminal.yellow[0] + let g:terminal_color_4 = s:terminal.blue[0] + let g:terminal_color_5 = s:terminal.purple[0] + let g:terminal_color_6 = s:terminal.cyan[0] + let g:terminal_color_7 = s:terminal.white[0] + let g:terminal_color_8 = s:terminal.black[0] + let g:terminal_color_9 = s:terminal.red[0] + let g:terminal_color_10 = s:terminal.green[0] + let g:terminal_color_11 = s:terminal.yellow[0] + let g:terminal_color_12 = s:terminal.blue[0] + let g:terminal_color_13 = s:terminal.purple[0] + let g:terminal_color_14 = s:terminal.cyan[0] + let g:terminal_color_15 = s:terminal.white[0] + endif + " }}} +endif +" }}} + +" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker fmr={{{,}}}: diff --git a/dot_config/nvim/dot_gitignore b/dot_config/nvim/dot_gitignore new file mode 100644 index 0000000..e15df4d --- /dev/null +++ b/dot_config/nvim/dot_gitignore @@ -0,0 +1,2 @@ +plugged/ +plugin/ diff --git a/dot_config/nvim/executable_run b/dot_config/nvim/executable_run new file mode 100644 index 0000000..ba4b75a --- /dev/null +++ b/dot_config/nvim/executable_run @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +exec docker run \ + --rm \ + -it \ + --name neovim-config \ + -v "$PWD":/root/.config/nvim \ + archlinux:latest diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua new file mode 100644 index 0000000..d9dd581 --- /dev/null +++ b/dot_config/nvim/init.lua @@ -0,0 +1,4 @@ +require("utils") +require("settings") +require("keys") +require("plugins") diff --git a/dot_config/nvim/lua/config/cmp.lua b/dot_config/nvim/lua/config/cmp.lua new file mode 100644 index 0000000..6a552de --- /dev/null +++ b/dot_config/nvim/lua/config/cmp.lua @@ -0,0 +1,74 @@ +local cmp = require("cmp") + +cmp.setup({ + snippet = { + -- REQUIRED - you must specify a snippet engine + expand = function(args) + -- vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users. + require('luasnip').lsp_expand(args.body) -- For `luasnip` users. + -- require('snippy').expand_snippet(args.body) -- For `snippy` users. + -- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users. + end, + }, + window = { + -- completion = cmp.config.window.bordered(), + -- documentation = cmp.config.window.bordered(), + }, + mapping = cmp.mapping.preset.insert({ + [''] = cmp.mapping.scroll_docs(-4), + [''] = cmp.mapping.scroll_docs(4), + [''] = cmp.mapping.complete(), + [''] = cmp.mapping.abort(), + [''] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + [''] = cmp.mapping(function(fallback) + if cmp.visible() then + cmp.select_next_item() + else + fallback() + end + end), + [''] = cmp.mapping(function(fallback) + if cmp.visible() then + cmp.select_prev_item() + else + fallback() + end + end) + }), + sources = cmp.config.sources({ + { name = 'nvim_lsp' }, + -- { name = 'vsnip' }, -- For vsnip users. + { name = 'luasnip' }, -- For luasnip users. + -- { name = 'ultisnips' }, -- For ultisnips users. + -- { name = 'snippy' }, -- For snippy users. + }, { + { name = 'buffer' }, + }) +}) + +-- Set configuration for specific filetype. +cmp.setup.filetype('gitcommit', { + sources = cmp.config.sources({ + { name = 'git' }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git). + }, { + { name = 'buffer' }, + }) +}) + +-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore). +cmp.setup.cmdline({ '/', '?' }, { + mapping = cmp.mapping.preset.cmdline(), + sources = { + { name = 'buffer' } + } +}) + +-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). +cmp.setup.cmdline(':', { + mapping = cmp.mapping.preset.cmdline(), + sources = cmp.config.sources({ + { name = 'path' } + }, { + { name = 'cmdline' } + }) +}) diff --git a/dot_config/nvim/lua/config/coq.lua b/dot_config/nvim/lua/config/coq.lua new file mode 100644 index 0000000..8db71ef --- /dev/null +++ b/dot_config/nvim/lua/config/coq.lua @@ -0,0 +1,28 @@ +local g = vim.g + +g.coq_settings = { + auto_start = "shut-up", + keymap = { recommended = false } +} + +vim.api.nvim_set_keymap("i", "", 'pumvisible() ? "\\" : "\\"', { + expr = true +}) + +vim.api.nvim_set_keymap("i", "", 'pumvisible() ? "\\" : "\\"', { + expr = true +}) + +--Set completeopt to have a better completion experience +vim.o.completeopt = "menuone,noinsert,noselect" + +--Avoid showing message extra message when using completion +vim.o.shortmess = vim.o.shortmess .. "c" + +vim.g.completion_chain_complete_list = { + default = { + { complete_items = { 'lsp', "buffer", "buffers" } }, + { mode = { '' } }, + { mode = { '' } } + }, +} diff --git a/dot_config/nvim/lua/config/ctrlp.lua b/dot_config/nvim/lua/config/ctrlp.lua new file mode 100644 index 0000000..fb7ba53 --- /dev/null +++ b/dot_config/nvim/lua/config/ctrlp.lua @@ -0,0 +1,15 @@ +local g = vim.g + +g.ctrlp_map = "t" +-- g.ctrlp_use_caching = 1 +-- g.ctrlp_clear_cache_on_exit = 0 +-- g.ctrlp_cache_dir = "./.vim/cache/ctrlp" +g.ctrlp_user_command = { + '.git', 'git --git-dir=%s/.git ls-files -oc --exclude-standard' +} + +--Limit max number of files +--This prevents me from indexing my entire HOME by accident +g.ctrlp_max_files = 1000 +--Also limit recursion depth +g.ctrlp_max_depth = 10 diff --git a/dot_config/nvim/lua/config/fugitive.lua b/dot_config/nvim/lua/config/fugitive.lua new file mode 100644 index 0000000..b88014a --- /dev/null +++ b/dot_config/nvim/lua/config/fugitive.lua @@ -0,0 +1,7 @@ +-- tpope/vim-fugitive +nmap("gg", ":Git") +nmap("gc", ":Git commit") +nmap("gp", ":Git push") +nmap("gd", ":Gdiffsplit!") +nmap("gm", ":Git mergetool") +nmap("gb", ":Git blame") diff --git a/dot_config/nvim/lua/config/gitgutter.lua b/dot_config/nvim/lua/config/gitgutter.lua new file mode 100644 index 0000000..2736f69 --- /dev/null +++ b/dot_config/nvim/lua/config/gitgutter.lua @@ -0,0 +1,3 @@ +local g = vim.g + +g.gitgutter_map_keys = 0 diff --git a/dot_config/nvim/lua/config/lspconfig.lua b/dot_config/nvim/lua/config/lspconfig.lua new file mode 100644 index 0000000..2e2e59e --- /dev/null +++ b/dot_config/nvim/lua/config/lspconfig.lua @@ -0,0 +1,75 @@ +-- neovim/neovim-lspconfig +local function on_attach(client, bufnr) + local opts = { + silent = true, + noremap = true, + } + local function buf_nmap(mapping, cmd) vim.api.nvim_buf_set_keymap(bufnr, "n", mapping, cmd, opts) end + + -- Jump to definition + buf_nmap("gd", "lua vim.lsp.buf.definition()") + -- Format current buffer on write + vim.api.nvim_command([[autocmd BufWritePre lua vim.lsp.buf.format()]]) + -- Show diagnostics for current line + buf_nmap("dd", "lua vim.diagnostic.open_float()") + -- Jump between diagnostic messages + buf_nmap("dj", "lua vim.diagnostic.goto_next()") + buf_nmap("dk", "lua vim.diagnostic.goto_prev()") + -- Rename symbol under cursor + buf_nmap("dr", "lua vim.lsp.buf.rename()") + -- Show hover info + buf_nmap("df", "lua vim.lsp.buf.hover()") + buf_nmap("du", "lua vim.lsp.buf.references()") + buf_nmap("da", "lua vim.lsp.buf.code_action()") +end + +-- For cmp autocomplete +local capabilities = require('cmp_nvim_lsp').default_capabilities() + +-- Comes with clang +require'lspconfig'.clangd.setup{on_attach = on_attach, capabilities = capabilities} +-- NPM: dockerfile-language-server-nodejs +require'lspconfig'.dockerls.setup{capabilities = capabilities} +-- Pacman: haskell-language-server +-- AUR: haskell-language-server-bin +-- GH: https://github.com/haskell/haskell-language-server +require'lspconfig'.hls.setup{ + on_attach = on_attach, + settings = { + haskell = { + formattingProvider = "stylish-haskell" + } + }, + capabilities = capabilities +} +-- Pacman: vieter-vls (requires my Vieter repository) +-- GH: https://github.com/vlang/vls +-- require'lspconfig'.vls.setup{ +-- cmd = {'vls'}, +-- filetypes = {'v'}, +-- on_attach = on_attach +-- } +-- Pacman: rust-analyzer +-- GH: https://github.com/rust-analyzer/rust-analyzer +require'lspconfig'.rust_analyzer.setup{on_attach = on_attach, capabilities = capabilities} +-- Installed using R shell: +-- `install.packages('languageserver')` +-- GH: https://github.com/REditorSupport/languageserver +require'lspconfig'.r_language_server.setup{capabilities = capabilities} +-- Installed using Go CLI: +-- go install github.com/nametake/golangci-lint-langserver@latest +-- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest +require'lspconfig'.gopls.setup{on_attach = on_attach, capabilities = capabilities} + +require'lspconfig'.texlab.setup{on_attach = on_attach, capabilities = capabilities} + +-- Fix that stops rust-analyzer interrupting typing when a request is cancelled +for _, method in ipairs({ 'textDocument/diagnostic', 'workspace/diagnostic' }) do + local default_diagnostic_handler = vim.lsp.handlers[method] + vim.lsp.handlers[method] = function(err, result, context, config) + if err ~= nil and err.code == -32802 then + return + end + return default_diagnostic_handler(err, result, context, config) + end +end diff --git a/dot_config/nvim/lua/config/nerdtree.lua b/dot_config/nvim/lua/config/nerdtree.lua new file mode 100644 index 0000000..cc259c8 --- /dev/null +++ b/dot_config/nvim/lua/config/nerdtree.lua @@ -0,0 +1,30 @@ +local g = vim.g + +g.NERDTreeIgnore = { + '^\\.vim$[[dir]]', + '^\\.vscode$[[dir]]', '.*\\.code-workspace$[[file]]', '^\\.idea$[[dir]]', + '^__pycache__$[[dir]]', '^\\.pytest_cache$[[dir]]', '^venv$[[dir]]', + '\\.egg-info$[[dir]]', '^dist$[[dir]]', + '^\\.eggs$[[dir]]', + '^out$[[dir]]', + '^\\.git$[[dir]]', + '^\\.stack-work$[[dir]]', '\\.lock$', + '^CMakeFiles$[[dir]]', '^CMakeCache.txt$[[file]]', + '.pdf$[[file]]', + '^node_modules$[[dir]]', + '\\.o$' +} + +g.NERDTreeShowHidden = 1 +g.NERDTreeMinimalUI = 1 +g.NERDTreeDirArrows = 1 +g.NERDTreeQuitOnOpen = 1 +g.NERDTreeChDirMode = 0 +g.NERDTreeNaturalSort = 1 +g.NERDTreeShowFiles = 1 +g.NERDTreeShowLineNumbers = 0 +g.NERDTreeWinPos = 'left' +g.NERDTreeMinimalMenu = 1 +g.NERDTreeAutoDeleteBuffer = 1 + +nmap("tt", ":NERDTreeFind") diff --git a/dot_config/nvim/lua/config/tagbar.lua b/dot_config/nvim/lua/config/tagbar.lua new file mode 100644 index 0000000..edb178c --- /dev/null +++ b/dot_config/nvim/lua/config/tagbar.lua @@ -0,0 +1,12 @@ +local g = vim.g + +g.tagbar_map_nexttag = "J" +g.tagbar_map_prevtag = "K" +g.tagbar_map_showproto = "u" +g.tagbar_sort = 0 +g.tagbar_compact = 1 +g.tagbar_autoshowtag = 1 +g.no_status_line = 1 +g.tagbar_autoclose = 1 + +nmap("tr", ":TagbarToggle") diff --git a/dot_config/nvim/lua/config/toggleterm.lua b/dot_config/nvim/lua/config/toggleterm.lua new file mode 100644 index 0000000..9b3afbe --- /dev/null +++ b/dot_config/nvim/lua/config/toggleterm.lua @@ -0,0 +1,25 @@ +vim.o.hidden = true + +require("toggleterm").setup { + -- open_mapping = "r", + direction = "float", + insert_mappings = false, + start_in_insert = false +} + +local Terminal = require('toggleterm.terminal').Terminal +local always_visible = Terminal:new{ + direction = "horizontal", + count = 6 +} + +function _always_visible_toggle() + always_visible:toggle() +end + +nmap("rr", ":1ToggleTerm") +nmap("ry", ":2ToggleTerm") +nmap("ru", ":3ToggleTerm") +nmap("ri", ":4ToggleTerm") +nmap("ro", ":5ToggleTerm") +nmap("rp", "lua _always_visible_toggle()") diff --git a/dot_config/nvim/lua/config/treesitter.lua b/dot_config/nvim/lua/config/treesitter.lua new file mode 100644 index 0000000..367de0b --- /dev/null +++ b/dot_config/nvim/lua/config/treesitter.lua @@ -0,0 +1,5 @@ +require"nvim-treesitter.configs".setup { + highlight = { enable = true } +} +local parser_config = require "nvim-treesitter.parsers".get_parser_configs() +parser_config.v = {} diff --git a/dot_config/nvim/lua/keys.lua b/dot_config/nvim/lua/keys.lua new file mode 100644 index 0000000..defabce --- /dev/null +++ b/dot_config/nvim/lua/keys.lua @@ -0,0 +1,60 @@ +imap("jk", "") + +vim.api.nvim_exec("inoremap ", false) + +-- Navigate splits +nmap("h", ":wincmd h") +nmap("j", ":wincmd j") +nmap("k", ":wincmd k") +nmap("l", ":wincmd l") + +-- Just some laziness +nmap("w", ":w") +nmap("q", ":q") + +-- As I don't use arrow keys for navigation, I use them for resizing +nmap("", ":resize +5") +nmap("", ":resize -5") +nmap("", ":vertical resize +5") +nmap("", ":vertical resize -5") +nmap("", ":resize +1") +nmap("", ":resize -1") +nmap("", ":vertical resize +1") +nmap("", ":vertical resize -1") + +-- Disable arrow keys in editing & visual mode, as I have no need for them +imap("", "") +imap("", "") +imap("", "") +imap("", "") +vmap("", "") +vmap("", "") +vmap("", "") +vmap("", "") + +-- These bindings I use for managing tabs +nmap("ee", ":$tabnew") +nmap("eL", ":tabnew") +nmap("eH", ":-tabnew") +nmap("ed", ":tabclose") +nmap("el", ":tabnext") +nmap("eh", ":tabprevious") +nmap("er", ":tabnew:e term://$SHELLi") + +-- TODO add config editing keybinds + +nmap("a", "") +tmap("jk", "") + +-- nmap("rr", ":e term://$SHELL") +-- nmap("rh", ":vsp:wincmd h:e term://$SHELL") +-- nmap("rl", ":vsp:e term://$SHELL") +-- nmap("rk", ":sp:wincmd k:e term://$SHELL") +-- nmap("rj", ":sp:e term://$SHELL") + +nmap("fh", ":vsp:wincmd h") +nmap("fj", ":sp") +nmap("fk", ":sp:wincmd k") +nmap("fl", ":vsp") + +vim.api.nvim_set_keymap("n", "gb", "", {}) diff --git a/dot_config/nvim/lua/plugins.lua b/dot_config/nvim/lua/plugins.lua new file mode 100644 index 0000000..25b9bb3 --- /dev/null +++ b/dot_config/nvim/lua/plugins.lua @@ -0,0 +1,212 @@ +local function bootstrap_pckr() + local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim" + + if not vim.uv.fs_stat(pckr_path) then + vim.fn.system({ + 'git', + 'clone', + "--filter=blob:none", + 'https://github.com/lewis6991/pckr.nvim', + pckr_path + }) + end + + vim.opt.rtp:prepend(pckr_path) +end + +bootstrap_pckr() + +require('pckr').add{ + { + "tpope/vim-fugitive", + config = function() + require('config.fugitive') + end + }, + { + "ctrlpvim/ctrlp.vim", + config_pre = function() + require('config.ctrlp') + end + }, + "tpope/vim-commentary", + { + "preservim/nerdtree", + config = function() + require('config.nerdtree') + end + }, + "jiangmiao/auto-pairs", + "editorconfig/editorconfig-vim", + { + "marko-cerovac/material.nvim", + config = function() + vim.cmd("colorscheme material") + -- color material + nmap("c", [[lua require('material.functions').toggle_style()]]) + end + }, + { + 'hrsh7th/nvim-cmp', + config = function() + require('config.cmp') + end + }, + { + 'hrsh7th/cmp-nvim-lsp', + requires = 'hrsh7th/nvim-cmp' + }, + { + 'hrsh7th/cmp-buffer', + requires = 'hrsh7th/nvim-cmp' + }, + { + 'hrsh7th/cmp-path', + requires = 'hrsh7th/nvim-cmp' + }, + { + 'hrsh7th/cmp-cmdline', + requires = 'hrsh7th/nvim-cmp' + }, + { + "neovim/nvim-lspconfig", + requires = 'hrsh7th/cmp-nvim-lsp', + config = function() + require('config.lspconfig') + end + }, + { + "nvim-treesitter/nvim-treesitter", + run = ":TSUpdate", + config = function() + require("config.treesitter") + end + }, + + -- Toggleable terminals + { + "akinsho/toggleterm.nvim", + config = function() + require('config.toggleterm') + end + }, + -- { + -- "ms-jpq/coq_nvim", + -- config = "config.coq" + -- }, + "L3MON4D3/LuaSnip", + "saadparwaiz1/cmp_luasnip", + "godlygeek/tabular" +} + +-- require('pckr').add({ +-- use "wbthomason/packer.nvim" +-- -- Improves boot times +-- -- use {"lewis6991/impatient.nvim", rocks = 'mpack'} +-- +-- -- Fuzzy search engine +-- use { +-- "ctrlpvim/ctrlp.vim", +-- setup = [[require('config.ctrlp')]] +-- } +-- +-- -- Git client +-- use { +-- "tpope/vim-fugitive", +-- config = [[require('config.fugitive')]] +-- } +-- +-- -- Shortcuts for commenting out code +-- use "tpope/vim-commentary" +-- +-- -- Shortcuts for surrounding pieces of text +-- use "tpope/vim-surround" +-- +-- -- Shows ctags in a sidebar +-- use { +-- "majutsushi/tagbar", +-- config = [[require('config.tagbar')]] +-- } +-- +-- -- Shows git diff markers +-- use { +-- "airblade/vim-gitgutter", +-- config = [[require('config.gitgutter')]] +-- } +-- +-- use "hynek/vim-python-pep8-indent" +-- use "michaeljsmith/vim-indent-object" +-- +-- -- File explorer +-- use { +-- "preservim/nerdtree", +-- config = [[require('config.nerdtree')]] +-- } +-- +-- use "jiangmiao/auto-pairs" +-- +-- -- Align text +-- use "godlygeek/tabular" +-- +-- -- Automatically load a .editorconfig file if found +-- use "editorconfig/editorconfig-vim" +-- +-- -- Pre-configured LSP stuff +-- use { +-- "neovim/nvim-lspconfig", +-- config = [[require('config.lspconfig')]] +-- } +-- +-- -- Beautiful treesitter-compatible theme +-- use { +-- "marko-cerovac/material.nvim", +-- config = function() +-- vim.cmd("colorscheme material") +-- -- color material +-- nmap("c", [[lua require('material.functions').toggle_style()]]) +-- end +-- } +-- +-- use 'hrsh7th/cmp-nvim-lsp' +-- use 'hrsh7th/cmp-buffer' +-- use 'hrsh7th/cmp-path' +-- use 'hrsh7th/cmp-cmdline' +-- use { +-- 'hrsh7th/nvim-cmp', +-- config = [[require('config.cmp')]] +-- } +-- +-- use 'L3MON4D3/LuaSnip' +-- use 'saadparwaiz1/cmp_luasnip' +-- +-- +-- -- Autocomplete engine +-- -- use { +-- -- "ms-jpq/coq_nvim", +-- -- branch = "coq", +-- -- config = [[require('config.coq')]] +-- -- } +-- +-- -- Better syntax highlighting +-- use { +-- "nvim-treesitter/nvim-treesitter", +-- run = ":TSUpdate", +-- config = [[require('config.treesitter')]] +-- } +-- +-- -- Toggleable terminals +-- use { +-- "akinsho/toggleterm.nvim", +-- config = [[require('config.toggleterm')]] +-- } +-- +-- -- LaTeX editing +-- use "lervag/vimtex" +-- +-- -- Coq stuff for uni +-- use "whonore/Coqtail" +-- +-- if packer_bootstrap then +-- require('packer').sync() +-- end +-- end) diff --git a/dot_config/nvim/lua/settings.lua b/dot_config/nvim/lua/settings.lua new file mode 100644 index 0000000..d9a7620 --- /dev/null +++ b/dot_config/nvim/lua/settings.lua @@ -0,0 +1,59 @@ +local o = vim.o +local g = vim.g + +g.mapleader = " " +g.maplocalleader = "\\" + +-- I often use non-standard shells that don't play nicely wiht certain features +-- o.shell = "/bin/bash" + +-- Centers your cursor whenever possible +-- 999 is just a really large number (I think it's amount of lines or something) +o.scrolloff = 999 + +-- Forces Neovim to assume a 256-color terminal; required for certain colorschemes +o.termguicolors = true + +-- Set the colorscheme +-- g.colors_name = "flattened_dark" + +-- This combo shows the absolute line number on the current line & the relative one on all the others +o.number = true +o.relativenumber = true + +-- Opens new files to the bottom, right resp. of the current buffer +o.splitbelow = true +o.splitright = true + +-- Converts tabs to 4 spaces +o.expandtab = true +o.tabstop = 4 +o.shiftwidth = 4 + +-- Show search matches as I'm typing +o.incsearch = true +-- Makes search case-sensitive only when using caps +o.smartcase = true +-- Don't highlight search results after search is finished +o.hlsearch = false + +local swap_dir = vim.fn.stdpath('data') .. '/swap' +local undo_dir = vim.fn.stdpath('data') .. '/undo' + +-- Create swap files +o.swapfile = true +-- Where to store the swap files; I store mine in the current directory +o.directory = swap_dir + +o.backup = false + +o.undofile = true +o.undodir = undo_dir + +o.updatetime = 250 + +o.shelltemp = false + +-- o.completeopt = "menuone,noselect" +vim.cmd([[autocmd BufRead,BufNewFile *.v,*.vsh setlocal filetype=v]]) +-- vim.cmd([[autocmd BufWritePre *.go,*.rs lua vim.lsp.buf.format()]]) diff --git a/dot_config/nvim/lua/utils.lua b/dot_config/nvim/lua/utils.lua new file mode 100644 index 0000000..024b435 --- /dev/null +++ b/dot_config/nvim/lua/utils.lua @@ -0,0 +1,11 @@ +function map(mode, keys, command) + vim.api.nvim_set_keymap(mode, keys, command, { + silent = true, + noremap = true + }) +end + +nmap = function(keys, command) map("n", keys, command) end +imap = function(keys, command) map("i", keys, command) end +vmap = function(keys, command) map("v", keys, command) end +tmap = function(keys, command) map("t", keys, command) end diff --git a/dot_config/nvim/plugin/.keep b/dot_config/nvim/plugin/.keep new file mode 100644 index 0000000..e69de29