From a9aacd33ce50961fcf835a4b713e58f8080189ed Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Fri, 9 Sep 2022 09:51:23 +0530 Subject: Fix reload on au ColorScheme | Check if buffer is valid before attaching --- doc/colorizer.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/colorizer.txt') diff --git a/doc/colorizer.txt b/doc/colorizer.txt index 3dba4d2..05fc8da 100644 --- a/doc/colorizer.txt +++ b/doc/colorizer.txt @@ -247,6 +247,8 @@ Helper functions to highlight buffer smartly LUA API *colorizer.buffer_utils-lua-api* Functions: ~ + |clear_hl_cache| - Clean the highlight cache + |highlight_buffer| - Highlight the buffer region. |rehighlight_buffer| - Rehighlight the buffer if colorizer is active @@ -260,6 +262,11 @@ Fields: ~ `colorizer.attach_to_buffer`. +clear_hl_cache() *colorizer.buffer_utils.clear_hl_cache* + Clean the highlight cache + + + *colorizer.buffer_utils.highlight_buffer* highlight_buffer({buf}, {ns}, {lines}, {line_start}, {line_end}, {options}, -- cgit v1.2.3-70-g09d2