Skip to content
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

Disable preview for code action #969

Closed
1 task
haunt98 opened this issue Dec 25, 2023 · 3 comments
Closed
1 task

Disable preview for code action #969

haunt98 opened this issue Dec 25, 2023 · 3 comments
Labels
wontfix This will not be worked on

Comments

@haunt98
Copy link

haunt98 commented Dec 25, 2023

Info

  • Operating System: macOS
  • Shell: zsh
  • Terminal: wezterm/kitty
  • nvim --version: NVIM v0.9.4
  • fzf --version: 0.44.1 (d7d2ac3)
  • The issue is reproducible with mini.sh
fzf-lua configuration
			require("fzf-lua").setup({ "fzf-native" })

			vim.keymap.set("n", "<Leader>f", ":FzfLua files<CR>")
			vim.keymap.set("n", "<Leader>l", ":FzfLua blines<CR>")
			vim.keymap.set("n", "<Leader>rg", ":FzfLua live_grep_resume<CR>")
			vim.keymap.set("n", "<Space>s", ":FzfLua lsp_document_symbols<CR>")
			vim.keymap.set("n", "<Space>d", ":FzfLua lsp_definitions<CR>")
			vim.keymap.set("n", "gd", ":FzfLua lsp_definitions<CR>")
			vim.keymap.set("n", "<Space>r", ":FzfLua lsp_references<CR>")
			vim.keymap.set("n", "gr", ":FzfLua lsp_references<CR>")
			vim.keymap.set("n", "<Space>i", ":FzfLua lsp_implementations<CR>")
			vim.keymap.set("n", "gi", ":FzfLua lsp_implementations<CR>")
			vim.keymap.set("n", "<Space>ca", ":FzfLua lsp_code_actions<CR>")

Description

Disable preview for lsp code action if can not show

image
@ibhagwan ibhagwan added the wontfix This will not be worked on label Dec 25, 2023
@ibhagwan
Copy link
Owner

ibhagwan commented Dec 25, 2023

This can be per-item, one code action can have a preview while others (for the same code location) won’t, disabling code action just for these items (that don’t have a preview) would be confusing.

if you wish to disable the previewer altogether set it to false either in setup or :FzfLua lsp_code_actions previewer=false.

@haunt98
Copy link
Author

haunt98 commented Dec 25, 2023

Thanks @ibhagwan , I think the correct one is previewer=false. And it works!

@haunt98 haunt98 closed this as completed Dec 25, 2023
haunt98 added a commit to haunt98/dotfiles that referenced this issue Dec 25, 2023
@ibhagwan
Copy link
Owner

Thanks @ibhagwan , I think the correct one is previewer=false. And it works!

Correct, sorry for the typo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants