This commit is contained in:
Myzel394 2024-05-31 08:55:51 +01:00 committed by GitHub
commit 5470def5d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,6 +148,17 @@ following command: `:ColorizerAttachToBuffer`
See [this comment](https://github.com/norcalli/nvim-colorizer.lua/issues/9#issuecomment-543742619) for more information.
### Fix for `*.conf` files
To automatically colorize `*.conf` files, you can use this lua snippet (run it inside a config function):
```lua
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
pattern = {"*.conf"},
command = ":ColorizerAttachToBuffer",
})
```
## TODO
- [ ] Add more display modes?