lsp_code_actions should ignore jump_to_single_result (closes issue #93)

main
bhagwan 3 years ago
parent 3527c8e532
commit 6c349939b8

@ -278,6 +278,9 @@ end
M.code_actions = function(opts)
opts = normalize_lsp_opts(opts, config.globals.lsp)
-- irrelevant for code actions and can cause
-- single results to be skipped with 'async = false'
opts.jump_to_single_result = false
opts.lsp_params = vim.lsp.util.make_range_params()
opts.lsp_params.context = {
diagnostics = vim.lsp.diagnostic.get_line_diagnostics()

Loading…
Cancel
Save