Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: There are use cases where you may wish to call a function instead of mapping a command directly to a key action for the finder UI. Solution: Supports configuring a `lspsaga.config.finder.actions` object mapping action names to callable functions. ```lua require('lspsaga').setup({ finder = { keys = { open = "<CR>", }, actions = { open = function (fname) print("Selected filename", fname) end }, } }) ``` Additionally, this wraps the final `api.nvim_win_set_cursor(0, pos)` call in `xpcall` given that this may fail if the function does not finish synchronously, like spawning a telescope interface. Fixes #1523
- Loading branch information