feat: add preview for compile commands picker
This commit is contained in:
parent
b668a18cc8
commit
cf55cd5838
|
@ -55,10 +55,12 @@ function M.pick_compile_commands()
|
||||||
value = entry,
|
value = entry,
|
||||||
display = entry.display,
|
display = entry.display,
|
||||||
ordinal = entry.display,
|
ordinal = entry.display,
|
||||||
|
path = entry.path, -- Add path for previewer
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
sorter = conf.generic_sorter{},
|
sorter = conf.generic_sorter{},
|
||||||
|
previewer = conf.file_previewer{}, -- Add file previewer
|
||||||
attach_mappings = function(prompt_bufnr, map)
|
attach_mappings = function(prompt_bufnr, map)
|
||||||
actions.select_default:replace(function()
|
actions.select_default:replace(function()
|
||||||
actions.close(prompt_bufnr)
|
actions.close(prompt_bufnr)
|
||||||
|
|
Loading…
Reference in New Issue