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 +++++++ doc/modules/colorizer.buffer_utils.html | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) (limited to 'doc') 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}, diff --git a/doc/modules/colorizer.buffer_utils.html b/doc/modules/colorizer.buffer_utils.html index 315794d..7260c5c 100644 --- a/doc/modules/colorizer.buffer_utils.html +++ b/doc/modules/colorizer.buffer_utils.html @@ -61,6 +61,10 @@

Functions

+ + + + @@ -92,6 +96,20 @@

Functions

+
+ + clear_hl_cache () +
+
+ Clean the highlight cache + + + + + + + +
highlight_buffer (buf, ns, lines, line_start, line_end, options, options_local) -- cgit v1.2.3-70-g09d2
clear_hl_cache ()Clean the highlight cache
highlight_buffer (buf, ns, lines, line_start, line_end, options, options_local) Highlight the buffer region.