feat: add preview for compile commands picker

This commit is contained in:
dlond 2025-09-03 08:59:25 +12:00 committed by Daniel Lond
parent b668a18cc8
commit cf55cd5838
1 changed files with 2 additions and 0 deletions

View File

@ -55,10 +55,12 @@ function M.pick_compile_commands()
value = entry,
display = entry.display,
ordinal = entry.display,
path = entry.path, -- Add path for previewer
}
end,
},
sorter = conf.generic_sorter{},
previewer = conf.file_previewer{}, -- Add file previewer
attach_mappings = function(prompt_bufnr, map)
actions.select_default:replace(function()
actions.close(prompt_bufnr)