goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.82k stars 109 forks source link

alpha opens telescope.nvim prompt in normal mode #141

Closed gmr458 closed 2 years ago

gmr458 commented 2 years ago

this only happens to me recently, it didn't happen before, when I open telescope.nvim the prompt is in normal mode by default.

my config:

local alpha_loaded, alpha = pcall(require, "alpha")

if not alpha_loaded then
    print("alpha not loaded")
    return
end

local dashboard = require("alpha.themes.dashboard")

dashboard.section.header.val = require("config.headers").Fraktur

local opts = { noremap = true, silent = true }

dashboard.section.buttons.val = {
    dashboard.button("tff", "  Find file", ":Telescope find_files hidden=true no_ignore=true<CR>", opts),
    dashboard.button("tfg", "  Live grep", ":Telescope live_grep preview=true<CR>", opts),
    dashboard.button("tfr", "  Recent File", ":Telescope oldfiles preview=false<CR>", opts),
    dashboard.button("q", "  Quit NVIM", ":qa<CR>", opts),
}

alpha.setup(dashboard.config)

when I run the telescope.nvim commands that are in my configuration manually, the prompt is automatically in insert mode

benjaminroest commented 2 years ago

Same problem for me.

jpoppe commented 2 years ago

It broke with this commit: https://github.com/goolord/alpha-nvim/commit/6af3b19d94e1660e558d6b7382e198a31945f9b9

goolord commented 2 years ago

fixed in https://github.com/goolord/alpha-nvim/commit/d2336550abec27c6af8be4ed5045fb4fa82a9c93

feedkeys being mysterious to me, again 😓