From 9fc6a2e1cdac513c8ff09069263ff102852be86a Mon Sep 17 00:00:00 2001 From: grvxs Date: Fri, 6 Aug 2021 16:50:25 +0530 Subject: fix: typos in lua/ --- lua/lsp/peek.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/lsp/peek.lua') diff --git a/lua/lsp/peek.lua b/lua/lsp/peek.lua index e512eee0..cc8e57a9 100644 --- a/lua/lsp/peek.lua +++ b/lua/lsp/peek.lua @@ -100,7 +100,7 @@ function M.set_cursor_to_prev_pos(winnr) local range = location.targetRange or location.range local cursor_pos = { range.start.line + 1, range.start.character } - -- Set the winnr to the floting window if none was passed in + -- Set the winnr to the floating window if none was passed in winnr = winnr or M.floating_win -- Set the cursor at the correct position in the floating window vim.api.nvim_win_set_cursor(winnr, cursor_pos) -- cgit v1.2.3