diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-05-07 12:00:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-07 16:00:26 +0000 |
| commit | b351024daf88d8ea3b934817ba7350fb29bbf37c (patch) | |
| tree | 3f9703168be4d262aac442aabded94e04ffd4fd5 /runtime/lua/vim/_core | |
| parent | 3639f7a8672bfbc6844f94c1db98c06cc9649afc (diff) | |
| download | rneovim-b351024daf88d8ea3b934817ba7350fb29bbf37c.tar.gz rneovim-b351024daf88d8ea3b934817ba7350fb29bbf37c.tar.bz2 rneovim-b351024daf88d8ea3b934817ba7350fb29bbf37c.zip | |
build(docs): lint more quasi-keysets #39654
Problem:
Linter missed backtick and double-quote keynames in the quasi-keyset of
the `nvim_create_user_command` docstring.
Solution:
Update the linter to check backtick-surrounded and quote-surrounded key
names.
Diffstat (limited to 'runtime/lua/vim/_core')
| -rw-r--r-- | runtime/lua/vim/_core/shared.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_core/shared.lua b/runtime/lua/vim/_core/shared.lua index 77cfac2d9d..a67e8513a1 100644 --- a/runtime/lua/vim/_core/shared.lua +++ b/runtime/lua/vim/_core/shared.lua @@ -660,8 +660,8 @@ end --- ---@param behavior 'error'|'keep'|'force'|fun(key:any, prev_value:any?, value:any): any Decides what to do if a key is found in more than one map: --- - "error": raise an error ---- - "keep": use value from the leftmost map --- - "force": use value from the rightmost map +--- - "keep": use value from the leftmost map --- - If a function, it receives the current key, the previous value in the currently merged table (if present), the current value and should --- return the value for the given key in the merged table. ---@param ... table Two or more tables @@ -693,8 +693,8 @@ end ---@generic T2: table ---@param behavior 'error'|'keep'|'force'|fun(key:any, prev_value:any?, value:any): any Decides what to do if a key is found in more than one map: --- - "error": raise an error ---- - "keep": use value from the leftmost map --- - "force": use value from the rightmost map +--- - "keep": use value from the leftmost map --- - If a function, it receives the current key, the previous value in the currently merged table (if present), the current value and should --- return the value for the given key in the merged table. ---@param ... T2 Two or more tables |