diff --git a/README.md b/README.md index b49f1a9..35cfb86 100644 --- a/README.md +++ b/README.md @@ -299,7 +299,7 @@ Catppuccin is a highly customizable and configurable colorscheme. This does howe Catppuccin can pre compute the results of your configuration and store the results in a compiled lua file. We use these precached values to set it's highlights. -To enable compile enables it in setup function: +- To enable compile enables it in setup function: ```lua compile = { @@ -310,36 +310,54 @@ compile = { ``` By default catppuccin writes the compiled results into the system's cache directory. -Catppuccin provides these commands to work with the catppuccin compiler. +- Catppuccin provides these commands to work with the catppuccin compiler. ```bash :CatppuccinCompile # Create/update the compile file :CatppuccinClean # Delete compiled file ``` -It's recommended to add `:CatppuccinCompile` to run everytime you update your config. For example: +- It's recommended to add `:CatppuccinCompile` to post-install/update hooks. For example: + +#### Packer.nvim ```lua use { "catppuccin/nvim", as = "catppuccin", - run = ":CatppuccinCompile", + run = "CatppuccinCompile", } ``` -To auto-compile catppuccin after `:PackerCompile`, create an autocmd `PackerCompileDone` in User group +#### Vim-plug + +```lua +Plug 'catppuccin/nvim', {'as': 'catppuccin', 'do': 'CatppuccinCompile'} +``` + +- To auto-compile everytime you update your config: + +#### Packer.nvim -For example, if your plugin specification is in `~/.config/nvim/lua/plugins.lua` then the pattern is `plugins.lua` +Create an autocmd `User PackerCompileDone` to update it every time packer is compiled: ```lua -vim.api.nvim_create_autocmd("User PackerCompileDone", { - pattern = "plugins.lua", +vim.api.nvim_create_autocmd("User", { + pattern = "PackerCompileDone", callback = function() vim.cmd "CatppuccinCompile" end, }) ``` +#### Vim-plug + +Auto compile on save if catppuccin config is in `init.vim` + +```lua +autocmd BufWritePost init.vim :CatppuccinCompile +``` + Acknowledge: [nightfox.nvim#compile](https://github.com/EdenEast/nightfox.nvim#compile) ### Extra diff --git a/colors/catppuccin.lua b/colors/catppuccin.lua new file mode 100644 index 0000000..de89880 --- /dev/null +++ b/colors/catppuccin.lua @@ -0,0 +1 @@ +require("catppuccin").load() diff --git a/colors/catppuccin.vim b/colors/catppuccin.vim deleted file mode 100644 index 9b4a0ee..0000000 --- a/colors/catppuccin.vim +++ /dev/null @@ -1,3 +0,0 @@ -lua << EOF -require('catppuccin').load() -EOF diff --git a/lua/catppuccin/groups/integrations/telescope.lua b/lua/catppuccin/groups/integrations/telescope.lua index 6ccd49a..eaa4a89 100644 --- a/lua/catppuccin/groups/integrations/telescope.lua +++ b/lua/catppuccin/groups/integrations/telescope.lua @@ -6,16 +6,16 @@ function M.get() TelescopeSelectionCaret = { fg = cp.flamingo }, TelescopeSelection = { fg = cp.text, bg = cp.surface0, style = { "bold" } }, TelescopeMatching = { fg = cp.blue }, - TelescopePromptPrefix = { bg = cp.crust }, - TelescopePromptNormal = { bg = cp.crust }, - TelescopeResultsNormal = { bg = cp.mantle }, - TelescopePreviewNormal = { bg = cp.crust }, - TelescopePromptBorder = { bg = cp.crust, fg = cp.crust }, - TelescopeResultsBorder = { bg = cp.mantle, fg = cp.crust }, - TelescopePreviewBorder = { bg = cp.crust, fg = cp.crust }, - TelescopePromptTitle = { fg = cp.crust }, - TelescopeResultsTitle = { fg = cp.text }, - TelescopePreviewTitle = { fg = cp.crust }, + -- TelescopePromptPrefix = { bg = cp.crust }, + -- TelescopePromptNormal = { bg = cp.crust }, + -- TelescopeResultsNormal = { bg = cp.mantle }, + -- TelescopePreviewNormal = { bg = cp.crust }, + -- TelescopePromptBorder = { bg = cp.crust, fg = cp.crust }, + -- TelescopeResultsBorder = { bg = cp.mantle, fg = cp.crust }, + -- TelescopePreviewBorder = { bg = cp.crust, fg = cp.crust }, + -- TelescopePromptTitle = { fg = cp.crust }, + -- TelescopeResultsTitle = { fg = cp.text }, + -- TelescopePreviewTitle = { fg = cp.crust }, } end