File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ local function mk_lsp_hoogle_signature_handler(options)
27
27
end
28
28
29
29
--- @param options table
30
- local function lsp_hoogle_signature (options )
31
- local params = lsp_util .make_position_params ()
30
+ --- @param offset_encoding ' utf-8' | ' utf-16' | ' utf-32'
31
+ local function lsp_hoogle_signature (options , offset_encoding )
32
+ local params = lsp_util .make_position_params (0 , offset_encoding )
32
33
return vim .lsp .buf_request (0 , ' textDocument/hover' , params , mk_lsp_hoogle_signature_handler (options ))
33
34
end
34
35
@@ -100,9 +101,9 @@ Hoogle.hoogle_signature = function(options)
100
101
return
101
102
end
102
103
local LspHelpers = require (' haskell-tools.lsp.helpers' )
103
- local clients = LspHelpers .get_clients { bufnr = vim .api .nvim_get_current_buf () }
104
+ local clients = LspHelpers .get_active_haskell_clients ( vim .api .nvim_get_current_buf ())
104
105
if # clients > 0 then
105
- lsp_hoogle_signature (options )
106
+ lsp_hoogle_signature (options , clients [ 1 ]. offset_encoding )
106
107
else
107
108
log .debug (' Hoogle signature search: No clients attached. Falling back to <cword>.' )
108
109
local cword = vim .fn .expand (' <cword>' )
You can’t perform that action at this time.
0 commit comments