vim._core.swapfile
Methods2
function M.select_swap(items: string[]) -> nil
Implements :recover (when there are multiple swap files): let the user pick via vim.ui.select().
async: returns immediately, then schedules :recover {path} on the chosen swapfile.
Parameters
itemsstring[]List of swapfile paths.
Returns
- nil
function M.list_swaps(items: string[]) -> nil
Implements nvim -r (no arg): list every swapfile found in 'directory'.
Parameters
itemsstring[]List of swapfile paths.
Returns
- nil