Skip to content

Commit

Permalink
fix(semantic_tokens): namespace -> module
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchilly committed Mar 24, 2024
1 parent 6b7a4df commit 196f301
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/catppuccin/groups/integrations/semantic_tokens.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you want to stay on nvim 0.7, disable the integration.
["@lsp.type.formatSpecifier"] = { link = "@punctuation.special" },
["@lsp.type.interface"] = { fg = C.flamingo },
["@lsp.type.keyword"] = { link = "@keyword" },
["@lsp.type.namespace"] = { link = "@namespace" },
["@lsp.type.namespace"] = { link = "@module" },
["@lsp.type.number"] = { link = "@number" },
["@lsp.type.operator"] = { link = "@operator" },
["@lsp.type.parameter"] = { link = "@parameter" },
Expand Down
7 changes: 6 additions & 1 deletion lua/catppuccin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ function M.load(flavour)
if M.options.flavour == "auto" then -- set colorscheme based on o:background
M.options.flavour = nil -- ensure that this will only run once on startup
if not vim.api.nvim_get_option_info2("background", {}).was_set then -- wait for terminal to set o:background
vim.g.colors_name = "catppuccin"
vim.api.nvim_create_autocmd("OptionSet", { -- https://github.com/neovim/neovim/pull/26284
once = true,
nested = true,
pattern = "background",
callback = function() M.load(flavour) end,
})
return
end
end
Expand Down

0 comments on commit 196f301

Please sign in to comment.