chore(readme): Fix vimscript syntax highlighting

dev
nullchilly 2 years ago
parent e412bf67e7
commit 462639f611

@ -329,18 +329,19 @@ By default catppuccin writes the compiled results into the system's cache direct
:CatppuccinClean # Delete compiled file :CatppuccinClean # Delete compiled file
``` ```
- To auto-compile everytime you update your config:
**Packer.nvim** **Packer.nvim**
```lua ```lua
- It's recommended to add `:CatppuccinCompile` to post-install/update hooks. For example: -- It's recommended to add `:CatppuccinCompile` to post-install/update hooks
use { use {
"catppuccin/nvim", "catppuccin/nvim",
as = "catppuccin", as = "catppuccin",
run = "CatppuccinCompile", run = "CatppuccinCompile",
} }
- To auto-compile everytime you update your config: # Create an autocmd `User PackerCompileDone` to update it every time packer is compiled:
vim.api.nvim_create_autocmd("User", { vim.api.nvim_create_autocmd("User", {
pattern = "PackerCompileDone", pattern = "PackerCompileDone",
callback = function() callback = function()
@ -351,8 +352,8 @@ vim.api.nvim_create_autocmd("User", {
**Vim-plug** **Vim-plug**
```bash ```vim
# Create an autocmd `User PackerCompileDone` to update it every time packer is compiled: # It's recommended to add `:CatppuccinCompile` to post-install/update hooks
Plug 'catppuccin/nvim', {'as': 'catppuccin', 'do': 'CatppuccinCompile'} Plug 'catppuccin/nvim', {'as': 'catppuccin', 'do': 'CatppuccinCompile'}
# Auto compile on save if catppuccin config is in `init.vim` # Auto compile on save if catppuccin config is in `init.vim`
autocmd BufWritePost init.vim :CatppuccinCompile autocmd BufWritePost init.vim :CatppuccinCompile

Loading…
Cancel
Save