Closed becknik closed 6 months ago
I believe you need to use helpers.mkRaw
(or just set .__raw
manually) when assigning lua code
Thanks a lot.
Solution is "<C-f>" = helpers.mkRaw "require('telescope.actions').add_selected_to_qflist + require('telescope.actions').open_qflist";
telescope-unstable-2024-04-02
unstable
Description
I'm unable to add the conjunction of two functions using the
+
operator to theplugins.telescope.settings.defaults.mappings.[i,n]."<c-f>"
attribute. See telescope documentation of how it is intended to be used.I tried out to use the qualifier
actions.
before the mapped functions, but it wouldn't work for a single mapped function without the operator+
. Addingactions.
before both of the conjunction functions wouldn't work either...When launching nvim with this set & opening telesope with e.g.
<leader>ff
, I'm getting the following error:The
telescope
-related part of theinit.lua
(with some extra formatting for readability) looks like this:further keybindings (not in example above)
```lua do local __nixvim_binds = { { ["action"] = require('telescope.builtin').lsp_dynamic_workspace_symbols, ["key"] = "Minimal, Reproducible Example (MRE)
See example provided above.