From 33d4bb4a644c05d369d02809f0b545d956e51da1 Mon Sep 17 00:00:00 2001 From: akianonymus Date: Sun, 26 Feb 2023 23:47:38 +0530 Subject: fix: Make always update buffer configurable | #52 disabled by default --- doc/modules/colorizer.color.html | 49 +++++-------------------------- doc/modules/colorizer.html | 5 ++++ doc/modules/colorizer.utils.html | 63 +++++++++++++++++++++------------------- 3 files changed, 46 insertions(+), 71 deletions(-) (limited to 'doc/modules') diff --git a/doc/modules/colorizer.color.html b/doc/modules/colorizer.color.html index 751214c..5947611 100644 --- a/doc/modules/colorizer.color.html +++ b/doc/modules/colorizer.color.html @@ -86,12 +86,8 @@ Grab all the colour values from vim.api.nvim_get_color_map and create a lookup table. - rgb_function_parser (line, i) - Parse for rgb() css function and return rgb hex. - - - rgba_function_parser (line, i) - Parse for rgba() css function and return rgb hex. + rgb_function_parser (line, i, opts) + Parse for rgb() rgba() css function and return rgb hex. rgba_hex_parser (line, i, opts) @@ -292,10 +288,11 @@
- rgb_function_parser (line, i) + rgb_function_parser (line, i, opts)
- Parse for rgb() css function and return rgb hex. + Parse for rgb() rgba() css function and return rgb hex. + For more info: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb

Parameters:

@@ -306,45 +303,15 @@
  • i number: Index of line from where to start parsing
  • - - -

    Returns:

    -
      -
    1. - number|nil: Index of line where the rgb function ended
    2. -
    3. - string|nil: rgb hex value
    4. -
    - - - - -
    -
    - - rgba_function_parser (line, i) -
    -
    - Parse for rgba() css function and return rgb hex. - Todo consider removing the regexes here - Todo this might not be the best approach to alpha channel. - Things like pumblend might be useful here. - - -

    Parameters:

    -

    Returns:

    1. - number|nil: Index of line where the rgba function ended
    2. + number|nil: Index of line where the rgb/rgba function ended
    3. string|nil: rgb hex value
    diff --git a/doc/modules/colorizer.html b/doc/modules/colorizer.html index 1196e4d..1d338e1 100644 --- a/doc/modules/colorizer.html +++ b/doc/modules/colorizer.html @@ -437,6 +437,8 @@ In user_default_options -- parsers can contain values used in |user_default_options| sass = { enable = false, parsers = { css }, }, -- Enable sass colors virtualtext = "■", + -- update color values even if buffer is not focused + always_update = false } @@ -484,6 +486,9 @@ In user_default_options
  • virtualtext string
  • +
  • always_update + boolean +
  • diff --git a/doc/modules/colorizer.utils.html b/doc/modules/colorizer.utils.html index d6a0216..5ebd197 100644 --- a/doc/modules/colorizer.utils.html +++ b/doc/modules/colorizer.utils.html @@ -74,6 +74,10 @@ Valid colorchars are alphanumeric and - ( tailwind colors ) +
    count (str, pattern) + Count the number of character in a string + + get_last_modified (path) Get last modified time of a file @@ -86,10 +90,6 @@ Obvious. - percent_or_hex (v) - Obvious. - - watch_file (path, callback, ...) Watch a file for changes and execute callback @@ -176,6 +176,34 @@ +
    +
    + + count (str, pattern) +
    +
    + Count the number of character in a string + + +

    Parameters:

    + + +

    Returns:

    +
      + + number +
    + + + +
    @@ -255,31 +283,6 @@ - -
    - - percent_or_hex (v) -
    -
    - Obvious. - - -

    Parameters:

    - - -

    Returns:

    -
      - - number|nil -
    - - - -
    @@ -298,7 +301,7 @@ function: Callback to execute
  • ... - array: params for callback + table: params for callback
  • -- cgit v1.2.3-70-g09d2