feat(scratch): change keymap to execute buffer/selection to <cr>

This commit is contained in:
Folke Lemaitre 2024-12-01 12:46:24 +01:00
parent e1fe4f5afe
commit 7db0ed4239
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -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" },