mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-06 03:38:16 +00:00
feat(scratch): change keymap to execute buffer/selection to <cr>
This commit is contained in:
parent
e1fe4f5afe
commit
7db0ed4239
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,6 @@ local defaults = {
|
|||
lua = {
|
||||
keys = {
|
||||
["source"] = {
|
||||
"<c-s>",
|
||||
function()
|
||||
if vim.fn.mode():match("[vV]") then
|
||||
vim.fn.feedkeys(":", "nx")
|
||||
|
@ -55,6 +54,7 @@ local defaults = {
|
|||
else
|
||||
vim.cmd([[source]])
|
||||
end
|
||||
"<cr>",
|
||||
end,
|
||||
desc = "Source buffer",
|
||||
mode = { "n", "x" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue