xiyaowong / transparent.nvim

Remove all background colors to make nvim transparent
821 stars 24 forks source link

Invalid character error #16

Closed juanpprieto closed 1 year ago

juanpprieto commented 1 year ago

Error

Error executing vim.schedule lua callback: ...e/pack/packer/start/nvim-transparent/lua/transparent.lua:49: Vim(highlight):E5248: Invalid character in g
roup name
stack traceback:
        [C]: in function 'cmd'
        ...e/pack/packer/start/nvim-transparent/lua/transparent.lua:49: in function 'clear_group_bg'
        ...e/pack/packer/start/nvim-transparent/lua/transparent.lua:64: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Config

up({
  enable = true,
  extra_groups = "all",
  exclude = {
    "CmpDocumentationBorder",
    "ColorColumn",
    "Comment",
    "CopilotSuggestion",
    "Cursor",
    "CursorLine",
    "DefinitionBorder",
    "DiagnosticError",
    "DiagnosticHint",
    "DiagnosticInfo",
    "DiagnosticWarn",
    "FinderSpinnerBorder",
    "FloatBorder",
    "GitSignsAdd",
    "GitSignsAddLn",
    "GitSignsChange",
    "GitSignsChangeLn",
    "GitSignsDelete",
    "GitSignsDeleteLn",
    "IndentBlankLineIndent1",
    "IndentBlanklineIndent2",
    "IndentBlanklineIndent3",
    "IndentBlanklineIndent4",
    "IndentBlanklineIndent5",
    "IndentBlanklineIndent6",
    "LSOutlinePreviewBorder",
    "LspFloatWinBorder",
    "LspSagaCodeActionBorder",
    "LspSagaDiagnosticBorder",
    "LspSagaHoverBorder",
    "LspSagaLspFinderBorder",
    "LspSagaRenameBorder",
    "LspSagaSignatureHelpBorder",
    "NeotestBorder",
    "NotifyDEBUGBorder",
    "NotifyERRORBorder",
    "NotifyINFOBorder",
    "NotifyTRACEBorder",
    "NotifyWARNBorder",
    "NvimSeparator",
    "OutlineDetail",
    "OutlineIndentEvn",
    "ScrollbarCursor",
    "ScrollbarHandle",
    "ScrollbarSearch",
    "Search",
    "TelescopeBorder",
    "TelescopePreviewBorder",
    "TelescopePromptBorder",
    "TelescopeResultsBorder",
    "TelescopeSelection",
    "TodoBgFix",
    "TodoBgHACK",
    "TodoBgNOTE",
    "TodoBgPERF",
    "TodoBgTODO",
    "TodoBgWARN",
    "Visual",
    "WinSeparator",
    "lualine_a_command",
    "lualine_a_insert",
    "lualine_a_normal",
    "lualine_a_visual",
  },
})
xiyaowong commented 1 year ago

I've added catching of errors, you can update to see the latest output. It's not recommended to clear all groups @juanpprieto

juanpprieto commented 1 year ago

thanks for the quick response! - here is the new trace after the update

Error detected while processing nvim_exec():
[transparent]:error occurs when setting highlight ``: Vim(highlight):E5248: Invalid character in group name
Yan-weihao commented 1 year ago

I have the same problem