From 6d5879f18f6e002e9875d32ba544b4c48b489cc3 Mon Sep 17 00:00:00 2001 From: nullchilly Date: Sun, 17 Jul 2022 15:19:04 +0700 Subject: [PATCH] fix(feline): incorrect doc --- README.md | 7 ++++--- lua/catppuccin/groups/integrations/leap.lua | 4 ++-- lua/catppuccin/groups/integrations/lightspeed.lua | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cee1158..35690d0 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,7 @@ Handles the style of general hi groups (see `:h highlight-args`): These integrations allow catppuccin to set the theme of various plugins/stuff. To enable an integration you just need to set it to `true`, however, there are some special integrations... -If you'd like to know which highlight groups are being affected by catppuccin, checkout this directory: [`lua/catppuccin/core/integrations/`](https://github.com/catppuccin/nvim/tree/main/lua/catppuccin/core/integrations). +If you'd like to know which highlight groups are being affected by catppuccin, checkout this directory: [`lua/catppuccin.groups.integrations/`](https://github.com/catppuccin/nvim/tree/main/lua/catppuccin.groups.integrations). ##### Special Integrations @@ -257,7 +257,7 @@ If you'd like to know which highlight groups are being affected by catppuccin, c ```lua require("feline").setup({ - components = require('catppuccin.core.integrations.feline'), + components = require('catppuccin.groups.integrations.feline'), }) ``` @@ -357,10 +357,11 @@ Packer.nvim ```lua -- Create an autocmd `User PackerCompileDone` to update it every time packer is compiled -vim.api.nvim_create_autocmd("User", { +autocmd("User", { pattern = "PackerCompileDone", callback = function() vim.cmd "CatppuccinCompile" + vim.cmd "colorscheme catppuccin" end, }) ``` diff --git a/lua/catppuccin/groups/integrations/leap.lua b/lua/catppuccin/groups/integrations/leap.lua index 335ee64..e188479 100644 --- a/lua/catppuccin/groups/integrations/leap.lua +++ b/lua/catppuccin/groups/integrations/leap.lua @@ -12,14 +12,14 @@ end function M.get() if not get_prepared() then - set_prepared(vim.api.nvim_create_autocmd("User", { - pattern = "CatppuccinLoaded", + set_prepared(vim.api.nvim_create_autocmd("ColorScheme", { callback = function() if pcall(require, "leap") then require("leap").init_highlight(true) end end, })) + set_prepared(true) end return { diff --git a/lua/catppuccin/groups/integrations/lightspeed.lua b/lua/catppuccin/groups/integrations/lightspeed.lua index bb19bec..afc77cc 100644 --- a/lua/catppuccin/groups/integrations/lightspeed.lua +++ b/lua/catppuccin/groups/integrations/lightspeed.lua @@ -12,14 +12,14 @@ end function M.get() if not get_prepared() then - set_prepared(vim.api.nvim_create_autocmd("User", { - pattern = "CatppuccinLoaded", + set_prepared(vim.api.nvim_create_autocmd("ColorScheme", { callback = function() if pcall(require, "lightspeed") then require("lightspeed").init_highlight() end end, })) + set_prepared(true) end return {