Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code action not parsed properly if selected from insert mode #44

Open
hejops opened this issue Jan 21, 2024 · 0 comments
Open

Code action not parsed properly if selected from insert mode #44

hejops opened this issue Jan 21, 2024 · 0 comments

Comments

@hejops
Copy link

hejops commented Jan 21, 2024

Minimal config:

local telescope = require("telescope")
telescope.setup({
	extensions = {
		["ui-select"] = {
			require("telescope.themes").get_dropdown(),
			-- the following line works
			-- require("telescope.themes").get_dropdown({ initial_mode = "normal" }),
		},
	},
})
telescope.load_extension("ui-select")
E5108: Error executing lua: vim/shared.lua:0: s: expected string, got function
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        vim/shared.lua: in function 'gsplit'
        vim/shared.lua: in function 'split'
        ...e/nvim/lazy/telescope.nvim/lua/telescope/actions/set.lua:162: in function 'run_replace_or_original'
        ...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
        ...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
        ...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
        ...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:262: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:261>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant