diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-10-17 11:16:16 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2024-10-21 00:54:43 +0200 |
commit | 18b43c331d8a0ed87d7cbefe2a18543b8e4ad360 (patch) | |
tree | 6cc88b23ade96b1804aeb1ef0870252c293d2878 /runtime/lua/vim/lsp/handlers.lua | |
parent | 960fdc775a88389d8b19389b8c74c98921b9acac (diff) | |
download | rneovim-18b43c331d8a0ed87d7cbefe2a18543b8e4ad360.tar.gz rneovim-18b43c331d8a0ed87d7cbefe2a18543b8e4ad360.tar.bz2 rneovim-18b43c331d8a0ed87d7cbefe2a18543b8e4ad360.zip |
refactor: rename vim.highlight => vim.hl
Problem:
- `vim.highlight` module does not follow `:help dev-name-common`, which
documents the name for "highlight" as "hl".
- Shorter names are usually preferred.
Solution:
Rename `vim.highlight` to `vim.hl`.
This is not a breaking change until 2.0 (or maybe never).
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index c87cf94b98..37cb07025c 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -437,7 +437,7 @@ function M.signature_help(_, result, ctx, config) local fbuf, fwin = util.open_floating_preview(lines, 'markdown', config) -- Highlight the active parameter. if hl then - vim.highlight.range( + vim.hl.range( fbuf, sig_help_ns, 'LspSignatureActiveParameter', |