estilo
Version:
Create color schemes for Vim, NeoVim, Airline and Lightline
15 lines (14 loc) • 18.6 kB
JavaScript
export default {
"syntax": {
"base": "# BASE UI\nColorColumn: ''\nConceal: ''\nCursor: ''\nCursorIM: ''\nCursorColumn: ''\nCursorLine: ''\nCursorLineNr: ''\nDirectory: ''\nDiffAdd: ''\nDiffChange: ''\nDiffDelete: ''\nDiffText: ''\nErrorMsg: ''\nVertSplit: ''\nFolded: ''\nFoldColumn: ''\nSignColumn: ''\nIncSearch: ''\nLineNr: ''\nMatchParen: ''\nModeMsg: ''\nMoreMsg: ''\nNonText: ''\nNormal: ''\nPMenu: ''\nPMenuSel: ''\nPmenuSbar: ''\nPmenuThumb: ''\nQuestion: ''\nSearch: ''\nSpecialKey: ''\nSpellBad: ''\nSpellLocal: ''\nSpellCap: ''\nSpellRare: ''\nStatusLine: ''\nStatusLineNC: ''\nTabLine: ''\nTabLineFill: ''\nTabLineSel: ''\nTitle: ''\nVisual: ''\nVisualNOS: ''\nWarningMsg: ''\nWildMenu: ''\n# BASE SYNTAX\nComment: ''\nConstant: ''\nString: '' # Constant\nCharacter: '' # Constant\nBoolean: '' # Constant\nNumber: '' # Constant\nFloat: '' # Constant\nIdentifier: ''\nFunction: '' # Identifier\nStatement: ''\nConditional: '' # Statement\nRepeat: '' # Statement\nLabel: '' # Statement\nOperator: '' # Statement\nKeyword: '' # Statement\nException: '' # Statement\nPreProc: ''\nInclude: '' # PreProc\nDefine: '' # PreProc\nMacro: '' # PreProc\nPreCondit: '' # PreProc\nType: ''\nStorageClass: '' # Type\nStructure: '' # Type\nTypedef: '' # Type\nSpecial: ''\nSpecialChar: '' # Special\nTag: '' # Special\nDelimiter: '' # Special\nSpecialComment: '' # Special\nDebug: '' # Special\nUnderlined: ''\nIgnore: ''\nError: ''\nTodo: ''\n",
"terminal": "color_foreground: ''\ncolor_background: ''\ncolor_0: ''\ncolor_1: ''\ncolor_2: ''\ncolor_3: ''\ncolor_4: ''\ncolor_5: ''\ncolor_6: ''\ncolor_7: ''\ncolor_8: ''\ncolor_9: ''\ncolor_10: ''\ncolor_11: ''\ncolor_12: ''\ncolor_13: ''\ncolor_14: ''\ncolor_15: ''\n",
"lsp": "---\n# LSP semantic tokens\n'@lsp.type.class': '' # Type\n'@lsp.type.comment': '' # Comment\n'@lsp.type.decorator': '' # Function\n'@lsp.type.enum': '' # Type\n'@lsp.type.enumMember': '' # Constant\n'@lsp.type.event': '' # Special\n'@lsp.type.function': '' # Function\n'@lsp.type.interface': '' # Type\n'@lsp.type.keyword': '' # Keyword\n'@lsp.type.macro': '' # Macro\n'@lsp.type.method': '' # Function\n'@lsp.type.modifier': '' # StorageClass\n'@lsp.type.namespace': '' # Identifier\n'@lsp.type.number': '' # Number\n'@lsp.type.operator': '' # Operator\n'@lsp.type.parameter': '' # Identifier\n'@lsp.type.property': '' # Identifier\n'@lsp.type.regexp': '' # String\n'@lsp.type.string': '' # String\n'@lsp.type.struct': '' # Structure\n'@lsp.type.type': '' # Type\n'@lsp.type.typeParameter': '' # TypeDef\n'@lsp.type.variable': '' # Identifier\n\n# LSP semantic modifiers\n'@lsp.mod.abstract': '' # StorageClass\n'@lsp.mod.async': '' # Special\n'@lsp.mod.declaration': '' # PreProc\n'@lsp.mod.defaultLibrary': '' # Special\n'@lsp.mod.definition': '' # Define\n'@lsp.mod.deprecated': '' # Todo\n'@lsp.mod.documentation': '' # Comment\n'@lsp.mod.modification': '' # PreProc\n'@lsp.mod.readonly': '' # StorageClass\n'@lsp.mod.static': '' # StorageClass\n\n# LSP document highlights\n'@lsp.typemod.class.defaultLibrary': '' # Type\n'@lsp.typemod.enum.defaultLibrary': '' # Type\n'@lsp.typemod.function.defaultLibrary': '' # Special\n'@lsp.typemod.interface.defaultLibrary': '' # Type\n'@lsp.typemod.keyword.async': '' # Keyword\n'@lsp.typemod.macro.defaultLibrary': '' # Macro\n'@lsp.typemod.method.defaultLibrary': '' # Function\n'@lsp.typemod.namespace.defaultLibrary': '' # Special\n'@lsp.typemod.operator.defaultLibrary': '' # Operator\n'@lsp.typemod.parameter.declaration': '' # Identifier\n'@lsp.typemod.property.readonly': '' # Identifier\n'@lsp.typemod.struct.defaultLibrary': '' # Structure\n'@lsp.typemod.type.defaultLibrary': '' # Type\n'@lsp.typemod.variable.defaultLibrary': '' # Special\n'@lsp.typemod.variable.readonly': '' # Identifier\n",
"treesitter": "---\n'@text.literal': '' # Comment\n'@text.reference': '' # Identifier\n'@text.title': '' # Title\n'@text.uri': '' # Underlined\n'@text.underline': '' # Underlined\n'@text.todo': '' # Todo\n#\n'@comment': '' # Comment\n'@comment.todo': '' # Comment : \"TODO\" \"WIP\"\n'@comment.note': '' # Comment : \"NOTE\" \"XXX\" \"INFO\" \"DOCS\" \"PERF\" \"TEST\"\n'@comment.warning': '' # Comment : \"HACK\" \"WARNING\" \"WARN\" \"FIX\"\n'@comment.error': '' # Comment : \"FIXME\" \"BUG\" \"ERROR\"\n#\n'@constant': '' # Constant\n'@constant.builtin': '' # Special\n'@constant.macro': '' # Define\n'@define': '' # Define\n'@macro': '' # Macro\n'@string': '' # String\n'@string.escape': '' # SpecialChar\n'@string.special': '' # SpecialChar\n'@character': '' # Character\n'@character.special': '' # SpecialChar\n'@number': '' # Number\n'@boolean': '' # Boolean\n'@float': '' # Float\n# #\n'@function': '' # Function\n'@function.builtin': '' # Special\n'@function.macro': '' # Macro\n'@parameter': '' # Identifier\n'@method': '' # Function\n'@field': '' # Identifier\n'@property': '' # Identifier\n'@constructor': '' # Special\n#\n'@conditional': '' # Conditional\n'@repeat': '' # Repeat\n'@label': '' # Label\n'@operator': '' # Operator\n'@keyword': '' # Keyword\n'@exception': '' # Exception\n#\n'@variable': '' # Identifier\n'@type': '' # Type\n'@type.definition': '' # Typedef\n'@storageclass': '' # StorageClass\n'@structure': '' # Structure\n'@namespace': '' # Identifier\n'@include': '' # Include\n'@preproc': '' # PreProc\n'@debug': '' # Debug\n'@tag': '' # Tag\n"
},
"mustaches": {
"airline": "<% const info = it.info; %>\n\"\"\n\" Airline_theme: <%= info.name %> v<%= it.info.version %>\n\n\"\n<% if(info.description){ %>\" <%= info.description %>\n<% } %>\n\n<% if(info.url){%>\" URL: <%= info.url %>\n<% } %>\n\n<% if(info.author){%>\" Author: <%= info.author %>\n<% } %>\n\n<% if(info.license){%>\" License: <%= info.license %>\n<% } %>\n\n\"\"\n\nlet g:airline#themes#<%= info.name %>#palette = {}\n\nlet s:normal1 = [ \"<%= it.normal1.fg.hex %>\", \"<%= it.normal1.bg.hex %>\", <%= it.normal1.fg.xterm %>, <%= it.normal1.bg.xterm %> ]\nlet s:normal2 = [ \"<%= it.normal2.fg.hex %>\", \"<%= it.normal2.bg.hex %>\", <%= it.normal2.fg.xterm %>, <%= it.normal2.bg.xterm %> ]\nlet s:normal3 = [ \"<%= it.normal3.fg.hex %>\", \"<%= it.normal3.bg.hex %>\", <%= it.normal3.fg.xterm %>, <%= it.normal3.bg.xterm %> ]\nlet g:airline#themes#<%= it.info.name %>#palette.normal = airline#themes#generate_color_map(s:normal1, s:normal2, s:normal3)\n\nlet s:insert1 = [ \"<%= it.insert1.fg.hex %>\", \"<%= it.insert1.bg.hex %>\", <%= it.insert1.fg.xterm %>, <%= it.insert1.bg.xterm %> ]\nlet s:insert2 = [ \"<%= it.insert2.fg.hex %>\", \"<%= it.insert2.bg.hex %>\", <%= it.insert2.fg.xterm %>, <%= it.insert2.bg.xterm %> ]\nlet s:insert3 = [ \"<%= it.insert3.fg.hex %>\", \"<%= it.insert3.bg.hex %>\", <%= it.insert3.fg.xterm %>, <%= it.insert3.bg.xterm %> ]\nlet g:airline#themes#<%= it.info.name %>#palette.insert = airline#themes#generate_color_map(s:insert1, s:insert2, s:insert3)\n\nlet s:replace1 = [ \"<%= it.replace1.fg.hex %>\", \"<%= it.replace1.bg.hex %>\", <%= it.replace1.fg.xterm %>, <%= it.replace1.bg.xterm %> ]\nlet s:replace2 = [ \"<%= it.replace2.fg.hex %>\", \"<%= it.replace2.bg.hex %>\", <%= it.replace2.fg.xterm %>, <%= it.replace2.bg.xterm %> ]\nlet s:replace3 = [ \"<%= it.replace3.fg.hex %>\", \"<%= it.replace3.bg.hex %>\", <%= it.replace3.fg.xterm %>, <%= it.replace3.bg.xterm %> ]\nlet g:airline#themes#<%= it.info.name %>#palette.replace = airline#themes#generate_color_map(s:replace1, s:replace2, s:replace3)\n\nlet s:visual1 = [ \"<%= it.visual1.fg.hex %>\", \"<%= it.visual1.bg.hex %>\", <%= it.visual1.fg.xterm %>, <%= it.visual1.bg.xterm %> ]\nlet s:visual2 = [ \"<%= it.visual2.fg.hex %>\", \"<%= it.visual2.bg.hex %>\", <%= it.visual2.fg.xterm %>, <%= it.visual2.bg.xterm %> ]\nlet s:visual3 = [ \"<%= it.visual3.fg.hex %>\", \"<%= it.visual3.bg.hex %>\", <%= it.visual3.fg.xterm %>, <%= it.visual3.bg.xterm %> ]\nlet g:airline#themes#<%= it.info.name %>#palette.visual = airline#themes#generate_color_map(s:visual1, s:visual2, s:visual3)\n\nlet s:inactive1 = [ \"<%= it.inactive1.fg.hex %>\", \"<%= it.inactive1.bg.hex %>\", <%= it.inactive1.fg.xterm %>, <%= it.inactive1.bg.xterm %> ]\nlet s:inactive2 = [ \"<%= it.inactive2.fg.hex %>\", \"<%= it.inactive2.bg.hex %>\", <%= it.inactive2.fg.xterm %>, <%= it.inactive2.bg.xterm %> ]\nlet s:inactive3 = [ \"<%= it.inactive3.fg.hex %>\", \"<%= it.inactive3.bg.hex %>\", <%= it.inactive3.fg.xterm %>, <%= it.inactive3.bg.xterm %> ]\nlet g:airline#themes#<%= it.info.name %>#palette.inactive = airline#themes#generate_color_map(s:inactive1, s:inactive2, s:inactive3)\n\n<% if(it.ctrlp1){ %>\nif !get(g:, 'loaded_ctrlp', 0)\n finish\nendif\n\nlet s:CP1 = [ \"<%= it.ctrlp1.fg.hex %>\", \"<%= it.ctrlp1.bg.hex %>\", <%= it.ctrlp1.fg.xterm %>, <%= it.ctrlp1.bg.xterm %> ]\nlet s:CP2 = [ \"<%= it.ctrlp2.fg.hex %>\", \"<%= it.ctrlp2.bg.hex %>\", <%= it.ctrlp2.fg.xterm %>, <%= it.ctrlp2.bg.xterm %> ]\nlet s:CP3 = [ \"<%= it.ctrlp3.fg.hex %>\", \"<%= it.ctrlp3.bg.hex %>\", <%= it.ctrlp3.fg.xterm %>, <%= it.ctrlp3.bg.xterm %> ]\n\nlet g:airline#themes#<%= it.info.name %>#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(s:CP1, s:CP2, s:CP3)\n<% } %>\n",
"lightline": "<% const info = it.info; %>\n\"\"\n\" Lightline_theme: <%= info.name %> v<%= it.info.version %>\n\n\"\n<% if(info.description){ %>\" <%= info.description %>\n<% } %>\n\n<% if(info.url){ %>\" URL: <%= info.url %>\n<% } %>\n\n<% if(info.author){ %>\" Author: <%= info.author %>\n<% } %>\n\n<% if(info.license){ %>\" License: <%= info.license %>\n<% } %>\n\n\"\"\n\nlet s:p = {\"normal\": {}, \"inactive\": {}, \"insert\": {}, \"replace\": {}, \"visual\": {}, \"tabline\": {} }\n\nlet s:p.normal.left = [[[\"<%= it.normal1.fg.hex %>\", <%= it.normal1.fg.xterm %>], [\"<%= it.normal1.bg.hex %>\", <%= it.normal1.bg.xterm %>]], [[\"<%= it.normal2.fg.hex %>\", <%= it.normal2.fg.xterm %>], [\"<%= it.normal2.bg.hex %>\", <%= it.normal2.bg.xterm %>]]]\nlet s:p.normal.middle = [[[\"<%= it.normal3.fg.hex %>\", <%= it.normal3.fg.xterm %>], [\"<%= it.normal3.bg.hex %>\", <%= it.normal3.bg.xterm %>]]]\nlet s:p.normal.right = [[[\"<%= it.normal4.fg.hex %>\", <%= it.normal4.fg.xterm %>], [\"<%= it.normal4.bg.hex %>\", <%= it.normal4.bg.xterm %>]], [[\"<%= it.normal5.fg.hex %>\", <%= it.normal5.fg.xterm %>], [\"<%= it.normal5.bg.hex %>\", <%= it.normal5.bg.xterm %>]]]\nlet s:p.normal.error = [[[\"<%= it.normalError.fg.hex %>\", <%= it.normalError.fg.xterm %>], [\"<%= it.normalError.bg.hex %>\", <%= it.normalError.bg.xterm %>]]]\nlet s:p.normal.warning = [[[\"<%= it.normalWarning.fg.hex %>\", <%= it.normalWarning.fg.xterm %>], [\"<%= it.normalWarning.bg.hex %>\", <%= it.normalWarning.bg.xterm %>]]]\n\nlet s:p.inactive.left = [[[\"<%= it.inactive1.fg.hex %>\", <%= it.inactive1.fg.xterm %>], [\"<%= it.inactive1.bg.hex %>\", <%= it.inactive1.bg.xterm %>]], [[\"<%= it.inactive2.fg.hex %>\", <%= it.inactive2.fg.xterm %>], [\"<%= it.inactive2.bg.hex %>\", <%= it.inactive2.bg.xterm %>]]]\nlet s:p.inactive.middle = [[[\"<%= it.inactive3.fg.hex %>\", <%= it.inactive3.fg.xterm %>], [\"<%= it.inactive3.bg.hex %>\", <%= it.inactive3.bg.xterm %>]]]\nlet s:p.inactive.right = [[[\"<%= it.inactive4.fg.hex %>\", <%= it.inactive4.fg.xterm %>], [\"<%= it.inactive4.bg.hex %>\", <%= it.inactive4.bg.xterm %>]], [[\"<%= it.inactive5.fg.hex %>\", <%= it.inactive5.fg.xterm %>], [\"<%= it.inactive5.bg.hex %>\", <%= it.inactive5.bg.xterm %>]]]\n\nlet s:p.insert.left = [[[\"<%= it.insert1.fg.hex %>\", <%= it.insert1.fg.xterm %>], [\"<%= it.insert1.bg.hex %>\", <%= it.insert1.bg.xterm %>]], [[\"<%= it.insert2.fg.hex %>\", <%= it.insert2.fg.xterm %>], [\"<%= it.insert2.bg.hex %>\", <%= it.insert2.bg.xterm %>]]]\nlet s:p.insert.middle = [[[\"<%= it.insert3.fg.hex %>\", <%= it.insert3.fg.xterm %>], [\"<%= it.insert3.bg.hex %>\", <%= it.insert3.bg.xterm %>]]]\nlet s:p.insert.right = [[[\"<%= it.insert4.fg.hex %>\", <%= it.insert4.fg.xterm %>], [\"<%= it.insert4.bg.hex %>\", <%= it.insert4.bg.xterm %>]], [[\"<%= it.insert5.fg.hex %>\", <%= it.insert5.fg.xterm %>], [\"<%= it.insert5.bg.hex %>\", <%= it.insert5.bg.xterm %>]]]\n\nlet s:p.replace.left = [[[\"<%= it.replace1.fg.hex %>\", <%= it.replace1.fg.xterm %>], [\"<%= it.replace1.bg.hex %>\", <%= it.replace1.bg.xterm %>]], [[\"<%= it.replace2.fg.hex %>\", <%= it.replace2.fg.xterm %>], [\"<%= it.replace2.bg.hex %>\", <%= it.replace2.bg.xterm %>]]]\nlet s:p.replace.middle = [[[\"<%= it.replace3.fg.hex %>\", <%= it.replace3.fg.xterm %>], [\"<%= it.replace3.bg.hex %>\", <%= it.replace3.bg.xterm %>]]]\nlet s:p.replace.right = [[[\"<%= it.replace4.fg.hex %>\", <%= it.replace4.fg.xterm %>], [\"<%= it.replace4.bg.hex %>\", <%= it.replace4.bg.xterm %>]], [[\"<%= it.replace5.fg.hex %>\", <%= it.replace5.fg.xterm %>], [\"<%= it.replace5.bg.hex %>\", <%= it.replace5.bg.xterm %>]]]\n\nlet s:p.visual.left = [[[\"<%= it.visual1.fg.hex %>\", <%= it.visual1.fg.xterm %>], [\"<%= it.visual1.bg.hex %>\", <%= it.visual1.bg.xterm %>]], [[\"<%= it.visual2.fg.hex %>\", <%= it.visual2.fg.xterm %>], [\"<%= it.visual2.bg.hex %>\", <%= it.visual2.bg.xterm %>]]]\nlet s:p.visual.middle = [[[\"<%= it.visual3.fg.hex %>\", <%= it.visual3.fg.xterm %>], [\"<%= it.visual3.bg.hex %>\", <%= it.visual3.bg.xterm %>]]]\nlet s:p.visual.right = [[[\"<%= it.visual4.fg.hex %>\", <%= it.visual4.fg.xterm %>], [\"<%= it.visual4.bg.hex %>\", <%= it.visual4.bg.xterm %>]], [[\"<%= it.visual5.fg.hex %>\", <%= it.visual5.fg.xterm %>], [\"<%= it.visual5.bg.hex %>\", <%= it.visual5.bg.xterm %>]]]\n\nlet s:p.tabline.left = [[[\"<%= it.tablineLeft.fg.hex %>\", <%= it.tablineLeft.fg.xterm %>], [\"<%= it.tablineLeft.bg.hex %>\", <%= it.tablineLeft.bg.xterm %>]]]\nlet s:p.tabline.tabsel = [[[\"<%= it.tablineSelected.fg.hex %>\", <%= it.tablineSelected.fg.xterm %>], [\"<%= it.tablineSelected.bg.hex %>\", <%= it.tablineSelected.bg.xterm %>]]]\nlet s:p.tabline.middle = [[[\"<%= it.tablineMiddle.fg.hex %>\", <%= it.tablineMiddle.fg.xterm %>], [\"<%= it.tablineMiddle.bg.hex %>\", <%= it.tablineMiddle.bg.xterm %>]]]\nlet s:p.tabline.right = [[[\"<%= it.tablineRight.fg.hex %>\", <%= it.tablineRight.fg.xterm %>], [\"<%= it.tablineRight.bg.hex %>\", <%= it.tablineRight.bg.xterm %>]]]\n\nlet g:lightline#colorscheme#<%= info.name %>#palette = lightline#colorscheme#flatten(s:p)\n",
"project": "name: '<%= it.name %>'\nversion: '<%= it.version %>'\nlicense: '<%= it.license %>'\nauthor: '<%= it.author %>'\nurl: '<%= it.url %>'\ndescription: '<%= it.description %>'\ncolorschemes:\n- name: '<%= it.name %>'\n background: 'dark'\n palette: '<%= it.name %>'\n",
"colorscheme": "\"\"\n\" <%= it.info.name %> v<%= it.info.version %>\n\n\"\n<% if(it.info.description) { %>\" <%= it.info.description %>\n<% } %>\n\n<% if(it.info.url){ %>\" URL: <%= it.info.url %>\n<% } %>\n\n<% if(it.info.author){ %>\" Author: <%= it.info.author %>\n<% } %>\n\n<% if(it.info.license){%>\" License: <%= it.info.license %>\n<% } %>\n\n\"\"\n\nset background=<%= it.info.background %>\n\n<% if ( it.info.neovim_legacy_compat ) { %>\nif has('nvim')\n source $VIMRUNTIME/colors/vim.lua\nelse\n hi clear\nendif\n<% } else { %>\nhi clear\n<% } %>\n\nif exists(\"syntax_on\")\n syntax reset\nendif\nlet g:colors_name=\"<%= it.info.name %>\"\n\n\nlet Italic = \"\"\nif exists('g:<%= it.info.name %>_italic')\n let Italic = \"italic\"\nendif\nlet g:<%= it.info.name %>_italic = get(g:, '<%= it.info.name %>_italic', 0)\n\nlet Bold = \"\"\nif exists('g:<%= it.info.name %>_bold')\n let Bold = \"bold\"\nendif\nlet g:<%= it.info.name %>_bold = get(g:, '<%= it.info.name%>_bold', 0)\n\n<% Object.keys(it.baseStacks).forEach(function (key) {%>\n<% const { link, fore, back, ui, guisp } = it.baseStacks[key]; %>\n<%- if(link){ -%>\nhi link <%=key%> <%=link%>\n<%- } else { -%>\nhi <%=key%>\n<%- if(fore){ -%> guifg=<%=fore.hex%> ctermfg=<%=fore.xterm%><%}%>\n<%- if(back){ -%> guibg=<%=back.hex%> ctermbg=<%=back.xterm%><%}%>\n<%- if(ui){ -%> gui=<%=ui%> cterm=<%=ui%><%}%>\n<%- if(guisp){ -%> guisp=<%=guisp.hex%><%}%>\n<% } %>\n\n<% }) %>\n<% Object.keys(it.stacks).forEach(function (key) {%>\n<% const { link, fore, back, ui, guisp } = it.stacks[key]; %>\n<%- if(link){ -%>\nhi link <%=key%> <%=link%>\n<%- } else { -%>\nhi <%=key%>\n<%- if(fore){ -%> guifg=<%=fore.hex%> ctermfg=<%=fore.xterm%><%}%>\n<%- if(back){ -%> guibg=<%=back.hex%> ctermbg=<%=back.xterm%><%}%>\n<%- if(ui){ -%> gui=<%=ui%> cterm=<%=ui%><%}%>\n<%- if(guisp){ -%> guisp=<%=guisp.hex%><%}%>\n<% } %>\n\n<% }) %>\n\n\n<%- if(it.treesitterStacks && Object.keys(it.treesitterStacks).length){ -%>\nif exists(':TSEnable')\n<% Object.keys(it.treesitterStacks).forEach(function (key) {%>\n<% const { link, fore, back, ui, guisp } = it.treesitterStacks[key]; %>\n<%- if(link){ -%>\n hi link <%=key%> <%=link%>\n<%- } else { -%>\n hi <%=key%>\n<%- if(fore){ -%> guifg=<%=fore.hex%> ctermfg=<%=fore.xterm%><%}%>\n<%- if(back){ -%> guibg=<%=back.hex%> ctermbg=<%=back.xterm%><%}%>\n<%- if(ui){ -%> gui=<%=ui%> cterm=<%=ui%><%}%>\n<%- if(guisp){ -%> guisp=<%=guisp.hex%><%}%>\n<% } %>\n\n<% }) %>\nendif\n<% } %>\n\n\n<%- if(it.lspStacks && Object.keys(it.lspStacks).length){ -%>\nif exists(':LspInfo')\n<% Object.keys(it.lspStacks).forEach(function (key) {%>\n<% const { link, fore, back, ui, guisp } = it.lspStacks[key]; %>\n<%- if(link){ -%>\n hi link <%=key%> <%=link%>\n<%- } else { -%>\n hi <%=key%>\n<%- if(fore){ -%> guifg=<%=fore.hex%> ctermfg=<%=fore.xterm%><%}%>\n<%- if(back){ -%> guibg=<%=back.hex%> ctermbg=<%=back.xterm%><%}%>\n<%- if(ui){ -%> gui=<%=ui%> cterm=<%=ui%><%}%>\n<%- if(guisp){ -%> guisp=<%=guisp.hex%><%}%>\n<% } %>\n\n<% }) %>\nendif\n<% } %>\n\n<% if(it.term.color_0){ %>\nif has('terminal')\n let g:terminal_ansi_colors = [\n \\ \"<%= it.term.color_0 %>\",\n \\ \"<%= it.term.color_1 %>\",\n \\ \"<%= it.term.color_2 %>\",\n \\ \"<%= it.term.color_3 %>\",\n \\ \"<%= it.term.color_4 %>\",\n \\ \"<%= it.term.color_5 %>\",\n \\ \"<%= it.term.color_6 %>\",\n \\ \"<%= it.term.color_7 %>\",\n \\ \"<%= it.term.color_8 %>\",\n \\ \"<%= it.term.color_9 %>\",\n \\ \"<%= it.term.color_10 %>\",\n \\ \"<%= it.term.color_11 %>\",\n \\ \"<%= it.term.color_12 %>\",\n \\ \"<%= it.term.color_13 %>\",\n \\ \"<%= it.term.color_14 %>\",\n \\ \"<%= it.term.color_15 %>\"\n \\ ]\nendif\n\nif has('nvim')\n<% Object.keys(it.term).forEach(function (key) { %>\n let g:terminal_<%= key %> = \"<%= it.term[key] %>\"\n<% }) %>\nendif\n<% } %>\n"
}
};