From 51ed2f8a3ac33f6ec8979d0a8d05baf56d771305 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Wed, 14 Sep 2022 21:05:37 +0530 Subject: Seperate tailwind stuff | Fix for neovim 0.7 Seperate the lines parsing logic in buffer_utils, upcoming multi threading parsing and processing Update docs --- doc/colorizer.txt | 39 +++++++++ doc/index.html | 5 ++ doc/modules/colorizer.buffer_utils.html | 1 + doc/modules/colorizer.color_utils.html | 1 + doc/modules/colorizer.html | 1 + doc/modules/colorizer.matcher_utils.html | 1 + doc/modules/colorizer.sass.html | 1 + doc/modules/colorizer.tailwind.html | 143 +++++++++++++++++++++++++++++++ doc/modules/colorizer.trie.html | 1 + doc/modules/utils.html | 1 + 10 files changed, 194 insertions(+) create mode 100644 doc/modules/colorizer.tailwind.html (limited to 'doc') diff --git a/doc/colorizer.txt b/doc/colorizer.txt index 2cc2d6e..6171fbf 100644 --- a/doc/colorizer.txt +++ b/doc/colorizer.txt @@ -576,6 +576,45 @@ sass_update_variables({buf}, {line_start}, {line_end}, {lines}, {color_parser}, +============================================================================== +TAILWIND *colorizer.tailwind-introduction* + +Helper functions to parse tailwind color variables + + +============================================================================== +LUA API *colorizer.tailwind-lua-api* + +Functions: ~ + |tailwind_cleanup| - Cleanup tailwind variables and autocmd + + |tailwind_setup_lsp_colors| - highlight buffer using values returned by + tailwindcss + To see these table information, see |colorizer.buffer_utils| + + +tailwind_cleanup({buf}) *colorizer.tailwind.tailwind_cleanup* + Cleanup tailwind variables and autocmd + + Parameters: ~ + {buf} - number + + + + + *colorizer.tailwind.tailwind_setup_lsp_colors* +tailwind_setup_lsp_colors({buf}, {options}, {options_local}, {add_highlight}) + highlight buffer using values returned by tailwindcss + To see these table information, see |colorizer.buffer_utils| + + Parameters: ~ + {buf} - number + {options} - table + {options_local} - table + {add_highlight} - function + + + ============================================================================== TRIE *colorizer.trie-introduction* diff --git a/doc/index.html b/doc/index.html index 2b3efa5..5e9f21d 100644 --- a/doc/index.html +++ b/doc/index.html @@ -36,6 +36,7 @@
  • color_utils
  • matcher_utils
  • sass
  • +
  • tailwind
  • trie
  • utils
  • @@ -68,6 +69,10 @@ colorizer.sass Helper functions to parse sass color variables + + colorizer.tailwind + Helper functions to parse tailwind color variables + colorizer.trie Trie implementation in luajit. diff --git a/doc/modules/colorizer.buffer_utils.html b/doc/modules/colorizer.buffer_utils.html index e433609..783afcc 100644 --- a/doc/modules/colorizer.buffer_utils.html +++ b/doc/modules/colorizer.buffer_utils.html @@ -45,6 +45,7 @@
  • color_utils
  • matcher_utils
  • sass
  • +
  • tailwind
  • trie
  • utils
  • diff --git a/doc/modules/colorizer.color_utils.html b/doc/modules/colorizer.color_utils.html index f685731..0ac39db 100644 --- a/doc/modules/colorizer.color_utils.html +++ b/doc/modules/colorizer.color_utils.html @@ -43,6 +43,7 @@
  • color_utils
  • matcher_utils
  • sass
  • +
  • tailwind
  • trie
  • utils
  • diff --git a/doc/modules/colorizer.html b/doc/modules/colorizer.html index 14b976f..df8879c 100644 --- a/doc/modules/colorizer.html +++ b/doc/modules/colorizer.html @@ -45,6 +45,7 @@
  • color_utils
  • matcher_utils
  • sass
  • +
  • tailwind
  • trie
  • utils
  • diff --git a/doc/modules/colorizer.matcher_utils.html b/doc/modules/colorizer.matcher_utils.html index bdf0188..569884f 100644 --- a/doc/modules/colorizer.matcher_utils.html +++ b/doc/modules/colorizer.matcher_utils.html @@ -43,6 +43,7 @@
  • color_utils
  • matcher_utils
  • sass
  • +
  • tailwind
  • trie
  • utils
  • diff --git a/doc/modules/colorizer.sass.html b/doc/modules/colorizer.sass.html index 45ec0d8..1abd56d 100644 --- a/doc/modules/colorizer.sass.html +++ b/doc/modules/colorizer.sass.html @@ -43,6 +43,7 @@
  • color_utils
  • matcher_utils
  • sass
  • +
  • tailwind
  • trie
  • utils
  • diff --git a/doc/modules/colorizer.tailwind.html b/doc/modules/colorizer.tailwind.html new file mode 100644 index 0000000..ae4d64b --- /dev/null +++ b/doc/modules/colorizer.tailwind.html @@ -0,0 +1,143 @@ + + + + + colorizer Docs + + + + +
    + +
    + +
    +
    +
    + + +
    + + + + + + +
    + +

    Module colorizer.tailwind

    +

    Helper functions to parse tailwind color variables

    +

    + +

    + + +

    Functions

    + + + + + + + + + +
    tailwind_cleanup (buf)Cleanup tailwind variables and autocmd
    tailwind_setup_lsp_colors (buf, options, options_local, add_highlight)highlight buffer using values returned by tailwindcss + To see these table information, see |colorizer.buffer_utils|
    + +
    +
    + + +

    Functions

    + +
    +
    + + tailwind_cleanup (buf) +
    +
    + Cleanup tailwind variables and autocmd + + +

    Parameters:

    +
      +
    • buf + number +
    • +
    + + + + + +
    +
    + + tailwind_setup_lsp_colors (buf, options, options_local, add_highlight) +
    +
    + highlight buffer using values returned by tailwindcss + To see these table information, see |colorizer.buffer_utils| + + +

    Parameters:

    +
      +
    • buf + number +
    • +
    • options + table +
    • +
    • options_local + table +
    • +
    • add_highlight + function +
    • +
    + + + + + +
    +
    + + +
    +
    +
    +generated by LDoc 1.4.6 +Last updated - September +
    +
    + + diff --git a/doc/modules/colorizer.trie.html b/doc/modules/colorizer.trie.html index 25cd3cb..c9433fc 100644 --- a/doc/modules/colorizer.trie.html +++ b/doc/modules/colorizer.trie.html @@ -39,6 +39,7 @@
  • color_utils
  • matcher_utils
  • sass
  • +
  • tailwind
  • trie
  • utils
  • diff --git a/doc/modules/utils.html b/doc/modules/utils.html index 8a5479a..9170c4e 100644 --- a/doc/modules/utils.html +++ b/doc/modules/utils.html @@ -43,6 +43,7 @@
  • color_utils
  • matcher_utils
  • sass
  • +
  • tailwind
  • trie
  • utils
  • -- cgit v1.2.3-70-g09d2