mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-06 19:58:22 +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 = {
|
lua = {
|
||||||
keys = {
|
keys = {
|
||||||
["source"] = {
|
["source"] = {
|
||||||
"<c-s>",
|
|
||||||
function()
|
function()
|
||||||
if vim.fn.mode():match("[vV]") then
|
if vim.fn.mode():match("[vV]") then
|
||||||
vim.fn.feedkeys(":", "nx")
|
vim.fn.feedkeys(":", "nx")
|
||||||
|
@ -55,6 +54,7 @@ local defaults = {
|
||||||
else
|
else
|
||||||
vim.cmd([[source]])
|
vim.cmd([[source]])
|
||||||
end
|
end
|
||||||
|
"<cr>",
|
||||||
end,
|
end,
|
||||||
desc = "Source buffer",
|
desc = "Source buffer",
|
||||||
mode = { "n", "x" },
|
mode = { "n", "x" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue