@@ -10,9 +10,10 @@ function M._default_previewer_fn()
1010 if type (winopts ) == " function" then
1111 winopts = winopts () or {}
1212 winopts .preview = type (winopts .preview ) == " table" and winopts .preview or {}
13- winopts .preview .default = winopts .preview .default or M .defaults .winopts .preview .default
13+ winopts .preview .default = winopts .preview .default
14+ or utils .map_get (M .defaults , " winopts.preview.default" )
1415 end
15- local previewer = M .globals .default_previewer or winopts . preview .default
16+ local previewer = M .globals .default_previewer or utils . map_get ( winopts , " preview.default" )
1617 -- the setup function cannot have a custom previewer as deepcopy
1718 -- fails with stack overflow while trying to copy the custom class
1819 -- the workaround is to define the previewer as a function instead
@@ -894,11 +895,16 @@ M.defaults.git = {
894895 },
895896}
896897
898+ --- Jujutsu pickers parent table.
899+ --- @class fzf-lua.config.JJ
900+ --- @field files fzf-lua.config.JJFiles
897901M .defaults .jj = {
898902 --- Jujutsu tracked files.
903+ --- @diagnostic disable-next-line : param-type-mismatch
904+ --- @class fzf-lua.config.JJFiles : fzf-lua.config.GitFiles
899905 files = vim .tbl_deep_extend (" force" , M .defaults .git .files , {
900- cmd = " jj file list --ignore-working-copy" ,
901- git_icons = false ,
906+ cmd = " jj file list --ignore-working-copy" ,
907+ git_icons = false ,
902908 }),
903909}
904910
0 commit comments