aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-02-27 15:59:48 +0100
committerGitHub <noreply@github.com>2020-02-27 15:59:48 +0100
commit49cd750d6a72efc0571a89d7a874bbb01081227f (patch)
treef2ef82d2d3120371cb313c6431aaec9a6da8087b /runtime/lua/vim/lsp/util.lua
parent52124f286c13af3ec33fdf2f73d63b456aaf527b (diff)
parent38201650cd60c001c4b639f30ca45f1b8eba98ca (diff)
downloadrneovim-49cd750d6a72efc0571a89d7a874bbb01081227f.tar.gz
rneovim-49cd750d6a72efc0571a89d7a874bbb01081227f.tar.bz2
rneovim-49cd750d6a72efc0571a89d7a874bbb01081227f.zip
Merge pull request #11910 from mfussenegger/references-ctx
LSP/references: Add context to locations returned by server
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 21e0dbfd1f..5f0fe8ceb4 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -797,7 +797,7 @@ function M.locations_to_items(locations)
for _, d in ipairs(locations) do
local start = d.range.start
local fname = assert(vim.uri_to_fname(d.uri))
- table.insert(grouped[fname], {start = start, msg= d.message })
+ table.insert(grouped[fname], {start = start})
end
@@ -824,7 +824,7 @@ function M.locations_to_items(locations)
filename = fname,
lnum = row + 1,
col = col + 1;
- text = temp.msg;
+ text = line;
})
end
end