aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-06-05 17:12:55 -0700
committerGitHub <noreply@github.com>2021-06-05 17:12:55 -0700
commit36802b895f6c426c37e84a0ade3f64bfcf2eb842 (patch)
tree156bace1f4962dc0a10049a0df7abc86a33ef67d /runtime/lua/vim/lsp/util.lua
parentf214c19e2b463c88b3c8320346fcb0b050617fb1 (diff)
parent15abde1676575cd4b938087b4fe7bed5d7182951 (diff)
downloadrneovim-36802b895f6c426c37e84a0ade3f64bfcf2eb842.tar.gz
rneovim-36802b895f6c426c37e84a0ade3f64bfcf2eb842.tar.bz2
rneovim-36802b895f6c426c37e84a0ade3f64bfcf2eb842.zip
Merge pull request #14730 from mjlbach/feature/open_loclist_on_win
fix(lsp): set_loclist should target current win
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 5a0bcd258e..9862b1dd32 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1602,8 +1602,8 @@ end
--- Can be obtained with e.g. |vim.lsp.util.locations_to_items()|.
---
--@param items (table) list of items
-function M.set_loclist(items)
- vim.fn.setloclist(0, {}, ' ', {
+function M.set_loclist(items, win_id)
+ vim.fn.setloclist(win_id or 0, {}, ' ', {
title = 'Language Server';
items = items;
})