diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-02-27 15:59:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 15:59:48 +0100 |
commit | 49cd750d6a72efc0571a89d7a874bbb01081227f (patch) | |
tree | f2ef82d2d3120371cb313c6431aaec9a6da8087b /runtime/lua/vim/lsp/util.lua | |
parent | 52124f286c13af3ec33fdf2f73d63b456aaf527b (diff) | |
parent | 38201650cd60c001c4b639f30ca45f1b8eba98ca (diff) | |
download | rneovim-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.lua | 4 |
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 |