diff options
author | Lewis Russell <me@lewisr.dev> | 2022-09-06 11:23:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 11:23:01 +0100 |
commit | 84d1094958fdbdda67f629197924d4146e2a1887 (patch) | |
tree | 98e20f97a5c5ce818ade4f330bca45ca1d4d26bf /runtime/doc | |
parent | 05893aea391d91e159a41f03acc20049c7049510 (diff) | |
parent | 75adfefc85bcf0d62d2c0f51a951e6003b595cea (diff) | |
download | rneovim-84d1094958fdbdda67f629197924d4146e2a1887.tar.gz rneovim-84d1094958fdbdda67f629197924d4146e2a1887.tar.bz2 rneovim-84d1094958fdbdda67f629197924d4146e2a1887.zip |
Merge pull request #19419 from vigoux/extmark_spell
Co-authored-by: Lewis Russell <lewis6991@gmail.com>
Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/api.txt | 6 | ||||
-rw-r--r-- | runtime/doc/options.txt | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index ea562e60b6..00a3759936 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2646,6 +2646,8 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {*opts}) When a character is supplied it is used as |:syn-cchar|. "hl_group" is used as highlight for the cchar if provided, otherwise it defaults to |hl-Conceal|. + • spell: boolean indicating that spell checking should be + performed within this extmark • ui_watched: boolean that indicates the mark should be drawn by a UI. When set, the UI will receive win_extmark events. Note: the mark is positioned by virt_text @@ -2677,7 +2679,7 @@ nvim_get_namespaces() *nvim_get_namespaces()* dict that maps from names to namespace ids. *nvim_set_decoration_provider()* -nvim_set_decoration_provider({ns_id}, {opts}) +nvim_set_decoration_provider({ns_id}, {*opts}) Set or change decoration provider for a namespace This is a very general purpose interface for having lua callbacks being @@ -2709,7 +2711,7 @@ nvim_set_decoration_provider({ns_id}, {opts}) Parameters: ~ {ns_id} Namespace id from |nvim_create_namespace()| - {opts} Callbacks invoked during redraw: + {opts} Table of callbacks: • on_start: called first on each screen redraw ["start", tick] • on_buf: called for each buffer being redrawn (before window diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 316b7ae3f1..b84a41eabc 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5871,10 +5871,14 @@ A jump table for the options with a short description can be found at |Q_op|. 'spelloptions' 'spo' string (default "") local to buffer A comma-separated list of options for spell checking: - camel When a word is CamelCased, assume "Cased" is a + camel When a word is CamelCased, assume "Cased" is a separate word: every upper-case character in a word that comes after a lower case character indicates the start of a new word. + noplainbuffer Only spellcheck a buffer when 'syntax' is enabled, or + or when extmarks are set within the buffer. Only + designated regions of the buffer are spellchecked in + this case. *'spellsuggest'* *'sps'* 'spellsuggest' 'sps' string (default "best") |