From 99b56d50b5eeebee345904bc157596fab5de51dd Mon Sep 17 00:00:00 2001 From: Marcelo Date: Fri, 4 Apr 2025 00:05:22 -0300 Subject: Change the Lua execute code keybinds to be similar to Neovim 0.11 ones. --- after/ftplugin/lua.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'after/ftplugin') diff --git a/after/ftplugin/lua.lua b/after/ftplugin/lua.lua index 5011d56..46c34b5 100644 --- a/after/ftplugin/lua.lua +++ b/after/ftplugin/lua.lua @@ -1,6 +1,6 @@ vim.keymap.set("n", "x", "source %", { buffer = true, desc = "Reloads the current config file" }) -vim.keymap.set("n", "x", ".lua", { buffer = true, desc = "Executes the current line" }) -vim.keymap.set("v", "x", "lua", { buffer = true, desc = "Executes the current selection" }) +vim.keymap.set("n", "g==", ":.lua", { buffer = true, desc = "Executes the current line" }) +vim.keymap.set("v", "g==", ":lua", { buffer = true, desc = "Executes the current selection" }) -- Open neovim plugins in github. vim.keymap.set("n", "gx", function() -- cgit v1.2.3