You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that this broke with the following commit: 836de8b, and now I get the following error when catppuccin loads:
Failed to run `config` for catppuccin
...puccin/lua/catppuccin/groups/integrations/native_lsp.lua:4: attempt to index global 'O' (a nil value)
# stacktrace:
- /catppuccin/lua/catppuccin/groups/integrations/native_lsp.lua:4 _in_ **get**
- ~/.config/nvim/lua/ui/catppuccin.lua:27 _in_ **v**
- /catppuccin/lua/catppuccin/lib/hashing.lua:21 _in_ **hash**
- /catppuccin/lua/catppuccin/lib/hashing.lua:17 _in_ **hash**
- /catppuccin/lua/catppuccin/init.lua:169 _in_ **setup**
Neovim version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"
Run :checkhealth for more info
Terminal and multiplexer
wezterm 20240203-110809-5046fc22 with tmux next-3.4
Catppuccin version / branch / rev
See above
Steps to reproduce
nvim -u repro.lua
It fails on load
Expected behavior
I should be able to use LSP colors in the custom highlights group
Actual behavior
Error on load:
Failed to run `config` for catppuccin
...puccin/lua/catppuccin/groups/integrations/native_lsp.lua:4: attempt to index global 'O' (a nil value)
# stacktrace:
- /catppuccin/lua/catppuccin/groups/integrations/native_lsp.lua:4 _in_ **get**
- ~/.config/nvim/lua/ui/catppuccin.lua:27 _in_ **v**
- /catppuccin/lua/catppuccin/lib/hashing.lua:21 _in_ **hash**
- /catppuccin/lua/catppuccin/lib/hashing.lua:17 _in_ **hash**
- /catppuccin/lua/catppuccin/init.lua:169 _in_ **setup**
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
{
"catppuccin/nvim",
name="catppuccin",
commit="836de8bc1898250b69332e66cbe993058870f849",
opts= {
integrations= {
custom_highlights=function()
locallsp=require("catppuccin.groups.integrations.native_lsp").get()
return {
MyHighlightGroup= {
fg=lsp.DiagnosticVirtualTextError.fg,
bg=lsp.DiagnosticVirtualTextError.bg,
},
}
end,
},
},
},
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("catppuccin")
The text was updated successfully, but these errors were encountered:
Description
I have some custom highlights set up in my config like this:
It seems that this broke with the following commit: 836de8b, and now I get the following error when catppuccin loads:
Neovim version
Terminal and multiplexer
wezterm 20240203-110809-5046fc22 with tmux next-3.4
Catppuccin version / branch / rev
See above
Steps to reproduce
nvim -u repro.lua
Expected behavior
I should be able to use LSP colors in the custom highlights group
Actual behavior
Error on load:
Repro
The text was updated successfully, but these errors were encountered: