Skip to content

Commit bb93003

Browse files
committed
Tweak C-f picker insert
1 parent f8172b0 commit bb93003

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/nvim/lua/plugin_config/snacks_picker.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ vim.keymap.set({ 'n', 'i' }, '<C-f>', function()
7777
vim.api.nvim_win_set_cursor(0, cursor_pos)
7878

7979
local filepath = vim.fn.getreg('"'):gsub("^%s*(.-)%s*$", "%1")
80-
vim.api.nvim_feedkeys('i' .. filepath, 'n', false)
80+
local formatted_filepath = " @file:" .. filepath .. " "
81+
vim.api.nvim_feedkeys('i' .. formatted_filepath, 'n', false)
8182
end
8283
},
8384
win = {

0 commit comments

Comments
 (0)