aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-04-21 15:19:43 +0200
committerJustin M. Keyes <justinkz@gmail.com>2024-04-21 17:08:07 +0200
commitd9d890562e43493c999f8a6ff2b848959686f5b6 (patch)
treee2f751afe697c4e95a37b00b2d75690ca173122d /runtime/lua/vim/lsp/handlers.lua
parent032df963bb3fb0b5652e1817e9f4da986996fa6d (diff)
downloadrneovim-d9d890562e43493c999f8a6ff2b848959686f5b6.tar.gz
rneovim-d9d890562e43493c999f8a6ff2b848959686f5b6.tar.bz2
rneovim-d9d890562e43493c999f8a6ff2b848959686f5b6.zip
refactor(lua): rename tbl_islist => islist
ref #24572
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index a15096fdad..d6579cf4b3 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -428,7 +428,7 @@ local function location_handler(_, result, ctx, config)
-- textDocument/definition can return Location or Location[]
-- https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_definition
- if not vim.tbl_islist(result) then
+ if not vim.islist(result) then
result = { result }
end