From 007f0efbca55b235e84e74b50e805ef87a5310c3 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Fri, 9 Sep 2022 13:49:10 +0530 Subject: Make sure to use existing options when attaching buffer --- doc/colorizer.txt | 5 ++++- doc/modules/colorizer.html | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/colorizer.txt b/doc/colorizer.txt index 05fc8da..3661d8f 100644 --- a/doc/colorizer.txt +++ b/doc/colorizer.txt @@ -130,7 +130,7 @@ attach_to_buffer({buf}, {options}, {typ}) *colorizer.attach_to_buffer* Parameters: ~ {buf} - integer: A value of 0 implies the current buffer. - {options} - table: Configuration options as described in `setup` + {options} - table|nil: Configuration options as described in `setup` {typ} - string|nil: "buf" or "file" - The type of buffer option @@ -174,6 +174,9 @@ get_buffer_options({buf}) *colorizer.get_buffer_options* Parameters: ~ {buf} - number|nil: Buffer number + returns:~ + table or nil + reload_all_buffers() *colorizer.reload_all_buffers* diff --git a/doc/modules/colorizer.html b/doc/modules/colorizer.html index 3b04ab9..311bd60 100644 --- a/doc/modules/colorizer.html +++ b/doc/modules/colorizer.html @@ -262,7 +262,7 @@ USE WITH LUA integer: A value of 0 implies the current buffer.
  • options - table: Configuration options as described in setup + table|nil: Configuration options as described in setup
  • typ string|nil: "buf" or "file" - The type of buffer option @@ -335,6 +335,11 @@ Setup an autocmd which enables colorizing for the filetypes and options specifie
  • +

    Returns:

    +
      + + table|nil +
    -- cgit v1.2.3-70-g09d2