-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: cleanup deprecated things #1723
Conversation
@@ -1074,7 +1074,7 @@ M.convert_reload_actions = function(reload_cmd, opts) | |||
end | |||
end | |||
end | |||
if has_reload and reload_cmd and type(reload_cmd) ~= "string" then | |||
if opts.silent ~= true and has_reload and reload_cmd and type(reload_cmd) ~= "string" then | |||
utils.warn( | |||
"actions with `reload` are only supported with string commands, using resume fallback") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This warn me every time when I use lsp picker seems due to I set a global actions.files
with reload actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, and oldfiles.
@@ -509,7 +509,8 @@ local function gen_lsp_contents(opts) | |||
if utils.tbl_isempty(results) then | |||
if not opts.fn_reload and not opts.silent then | |||
utils.info(string.format("No %s found", string.lower(lsp_handler.label))) | |||
else | |||
end | |||
if opts.fn_reload then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems a bug introduced from (a81d18e): FzfLua lsp_xxx silent=true
will always launch fzf even when no results.
bb5df80
to
90b3d05
Compare
* legacy `opts.preview_window` -> `fzf_opts.--preview_window` * `vim.fn.termopen` -> `vim.fn.jobstart` + `{ term = true }` * `vim.loop` -> `vim.uv` * `vim.lsp.diagnostics.get_line_diagnostics` -> `vim.lsp.diagnostic.get` * remove term workaround 9a755f2 (fixed now) * `opts.silent` when `reload` fallback to `resume`
90b3d05
to
9567e05
Compare
Tysm @phanen, this is very helpful. Did tiny 2 modifications:
|
opts.preview_window
->fzf_opts.--preview_window
vim.fn.termopen
->vim.fn.jobstart
+{ term = true }
vim.loop
->vim.uv
vim.lsp.diagnostics.get_line_diagnostics
->vim.lsp.diagnostic.get
opts.silent
whenreload
fallback toresume