1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

fix(zettelkasten): fix default telescope actions

This commit is contained in:
Eric Wong 2024-12-25 21:32:01 +08:00
parent 65ee77b5cf
commit 14f2de7911

View File

@ -71,6 +71,21 @@ local function show_changes(opts)
actions.close(prompt_bufnr)
vim.cmd('e ' .. entry.value.file_name)
end)
actions.select_tab:replace(function()
local entry = action_state.get_selected_entry()
actions.close(prompt_bufnr)
vim.cmd('tabedit ' .. entry.value.file_name)
end)
actions.select_vertical:replace(function()
local entry = action_state.get_selected_entry()
actions.close(prompt_bufnr)
vim.cmd('vsplit ' .. entry.value.file_name)
end)
actions.select_horizontal:replace(function()
local entry = action_state.get_selected_entry()
actions.close(prompt_bufnr)
vim.cmd('split ' .. entry.value.file_name)
end)
return true
end,
})