From a3dba907bd74d1f98d544fb5c1bca0309ed43e81 Mon Sep 17 00:00:00 2001 From: Filipe Kiss Date: Fri, 18 Oct 2019 15:53:49 +0200 Subject: Add FileType information to the README (#10) * Add FileType information to the README * Add ColorizerAttachToBuffer command --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 3304195..e7626d9 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,13 @@ require 'colorizer'.setup { For lower level interface, see the [LuaDocs for API details](https://norcalli.github.io/luadoc/nvim-colorizer.lua/modules/colorizer.html) or use `:h colorizer.lua` once installed. +## Caveats + +If the file you are editing has no filetype, the plugin won't be attached, as it relies on AutoCmd to do so. You can still make it work by running the following command: +`:ColorizerAttachToBuffer` + +See [this comment](https://github.com/norcalli/nvim-colorizer.lua/issues/9#issuecomment-543742619) for more information. + ## TODO - [ ] Add more display modes? -- cgit v1.2.3-70-g09d2