diff options
author | Brian Chen <brianchen8990@gmail.com> | 2022-02-25 10:47:45 +0100 |
---|---|---|
committer | Brian Chen <brianchen8990@gmail.com> | 2022-02-25 10:47:45 +0100 |
commit | 12471cb08e07f422554993f310f694fb222e8673 (patch) | |
tree | f710f01de5225baf8ac54e234a9527eff9705450 | |
parent | Add support for 0xAARRGGBB (diff) |
Update readme with virtualtext mode
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,7 +41,7 @@ written with performance in mind and leveraging the excellent LuaJIT and a handwritten parser, updates can be done in real time. There are plugins such as [hexokinase](https://github.com/RRethy/vim-hexokinase) which have good performance, but it has some difficulty with becoming out of sync. The downside -is that *this only works for Neovim*, and that will never change. +is that _this only works for Neovim_, and that will never change. Additionally, having a Lua API that's available means users can use this as a library to do custom highlighting themselves. @@ -64,8 +64,10 @@ library to do custom highlighting themselves. ``` MODES: + - `foreground`: sets the foreground text color. - `background`: sets the background text color. +- `virtualtext`: indicate the color behind the virtualtext. For basic setup, you can use a command like the following. @@ -109,7 +111,6 @@ 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. ## Commands @@ -139,7 +140,6 @@ buffer. Toggle highlighting of the current buffer. ``` - ## Caveats If the file you are editing has no filetype, the plugin won't be attached, as |