Skip to content

Commit

Permalink
fix(previewer): preview nvim-jdtls jdt:// entries (closes #728)
Browse files Browse the repository at this point in the history
Used this opportunity to refactor and simplify the builtin
previewer code.
  • Loading branch information
ibhagwan committed Jun 27, 2023
1 parent 5039478 commit 9d9eea4
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 207 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1102,12 +1102,10 @@ require'fzf-lua'.setup {
-- previewer hidden by default
winopts = { preview = { hidden = "hidden" } },
},
-- uncomment to use the old help previewer which used a
-- minimized help window to generate the help tag preview
-- helptags = { previewer = "help_tags" },
-- uncomment to use `man` command as native fzf previewer
-- uncomment to use fzf native previewers
-- (instead of using a neovim floating window)
-- manpages = { previewer = "man_native" },
-- helptags = { previewer = "help_native" },
--
-- optional override of file extension icon colors
-- available colors (terminal):
Expand Down
6 changes: 1 addition & 5 deletions lua/fzf-lua/defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,8 @@ M.defaults = {
_ctor = previewers.fzf.man_pages,
},
help_tags = {
split = "botright", -- "topleft"
_ctor = previewers.builtin.help_tags,
},
help_file = {
_ctor = previewers.builtin.help_file,
},
help_native = {
_ctor = previewers.fzf.help_tags,
},
Expand Down Expand Up @@ -538,7 +534,7 @@ M.defaults.helptags = {
["--with-nth"] = "..-2",
},
previewer = {
_ctor = previewers.builtin.help_file,
_ctor = previewers.builtin.help_tags,
},
}

Expand Down
Loading

0 comments on commit 9d9eea4

Please sign in to comment.