From c06ed5068cd21c5fc5cb2af731b71641babaf66f Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:37:21 +0100 Subject: [PATCH] feat(docs): Add .conf section --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index abdc368..78f1424 100644 --- a/README.md +++ b/README.md @@ -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?