fix: missing ','
This commit is contained in:
parent
4992df685d
commit
369887becb
|
@ -45,8 +45,8 @@ function M.pick_compile_commands()
|
||||||
local conf = require('telescope.config').values
|
local conf = require('telescope.config').values
|
||||||
local actions = require('telescope.actions')
|
local actions = require('telescope.actions')
|
||||||
local action_state = require('telescope.actions.state')
|
local action_state = require('telescope.actions.state')
|
||||||
local previewers = require('telescope.previewers')
|
|
||||||
|
|
||||||
|
-- Use Telescope's built-in file picker configuration
|
||||||
pickers.new({}, {
|
pickers.new({}, {
|
||||||
prompt_title = 'Select compile_commands.json',
|
prompt_title = 'Select compile_commands.json',
|
||||||
finder = finders.new_table {
|
finder = finders.new_table {
|
||||||
|
@ -56,13 +56,14 @@ function M.pick_compile_commands()
|
||||||
value = entry,
|
value = entry,
|
||||||
display = entry.display,
|
display = entry.display,
|
||||||
ordinal = entry.display,
|
ordinal = entry.display,
|
||||||
filename = entry.path, -- Use filename for previewer
|
filename = entry.path,
|
||||||
path = entry.path,
|
path = entry.path,
|
||||||
|
cwd = vim.fn.getcwd(),
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
sorter = conf.generic_sorter{},
|
sorter = conf.file_sorter{},
|
||||||
previewer = previewers.vim_buffer_cat.new{}, -- Use vim_buffer_cat previewer
|
previewer = conf.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