Execute Lua code in the current file, range or

...line
This commit is contained in:
Oliver Davies 2024-12-10 16:55:45 +00:00
parent 6e897dfe0b
commit 3d4bca0ada

View file

@ -6,8 +6,10 @@ set("n", "<Leader>so", ":call opdavies#save_and_exec()<CR>")
set("n", "<Leader>g", "gqap")
set("x", "<Leader>g", "gqa")
-- Make the current file executable
set("n", "<Leader>x", ":!chmod +x %<Cr>")
-- Execute Lua in the current file, line or range.
set("n", "<leader><leader>x", "<cmd>source %<CR>")
set("n", "<leader>x", ":.lua<CR>")
set("v", "<leader>x", ":lua<CR>")
-- Yank from the current column to the end of the line
set("n", "Y", "yg$")