summaryrefslogtreecommitdiff
path: root/after/ftplugin
diff options
context:
space:
mode:
authorMarcelo <setanta@gmail.com>2025-04-04 00:05:22 -0300
committerMarcelo <setanta@gmail.com>2025-04-04 00:10:31 -0300
commit99b56d50b5eeebee345904bc157596fab5de51dd (patch)
tree4e3e0c67029bb4dbd77148842e8e8910244c1b19 /after/ftplugin
parentd4677b4cb0f367c871eed674c50eb9555cc8adeb (diff)
Change the Lua execute code keybinds to be similar to Neovim 0.11 ones.
Diffstat (limited to 'after/ftplugin')
-rw-r--r--after/ftplugin/lua.lua4
1 files changed, 2 insertions, 2 deletions
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", "<Leader><Leader>x", "<CMD>source %<CR>", { buffer = true, desc = "Reloads the current config file" })
-vim.keymap.set("n", "<Leader>x", "<CMD>.lua<CR>", { buffer = true, desc = "Executes the current line" })
-vim.keymap.set("v", "<Leader>x", "<CMD>lua<CR>", { buffer = true, desc = "Executes the current selection" })
+vim.keymap.set("n", "g==", ":.lua<CR>", { buffer = true, desc = "Executes the current line" })
+vim.keymap.set("v", "g==", ":lua<CR>", { buffer = true, desc = "Executes the current selection" })
-- Open neovim plugins in github.
vim.keymap.set("n", "gx", function()