1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:50:04 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Eric Wong
14f2de7911 fix(zettelkasten): fix default telescope actions 2024-12-25 21:32:01 +08:00
Eric Wong
65ee77b5cf fix(statusline): fix undefined variable 2024-12-25 20:51:55 +08:00
2 changed files with 16 additions and 0 deletions

View File

@ -1540,6 +1540,7 @@ let g:_spacevim_altmoveignoreft = ['Tagbar' , 'vimfiler']
let g:_spacevim_mappings_space = {}
let g:_spacevim_mappings_prefixs = {}
let g:_spacevim_mappings_windows = {}
let g:_spacevim_statusline_fileformat = ''
let g:spacevim_enable_javacomplete2_py = 0
""
" @section src_root, options-src_root

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,
})