Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb2054a3

Browse files
committed
fix(picker.input): startinsert when starting the picker from terminal mode. See#2390
1 parent41da728 commitb2054a3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎lua/snacks/picker/core/input.lua‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ function M.new(picker)
5151

5252
self.win:on("BufEnter",function()
5353
vim.bo[self.win.buf].buftype="prompt"
54-
vim.cmd("startinsert!")
54+
ifvim.fn.mode()=="t"then
55+
vim.schedule(function()
56+
vim.cmd("startinsert!")
57+
end)
58+
else
59+
vim.cmd("startinsert!")
60+
end
5561
end, {buf=true })
5662

5763
localref=Snacks.util.ref(self)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp