summaryrefslogtreecommitdiff
path: root/after/ftplugin/lua.lua
diff options
context:
space:
mode:
authorMarcelo <setanta@gmail.com>2025-03-03 21:05:55 -0300
committerMarcelo Lira <setanta@gmail.com>2025-03-07 02:15:25 -0300
commitc78361a6155dd53cd1098f7fdf33acfea20dc903 (patch)
treee13b8065c4a1180f3b1d483676b55af4cba2ee4c /after/ftplugin/lua.lua
Initial commit.
Diffstat (limited to 'after/ftplugin/lua.lua')
-rw-r--r--after/ftplugin/lua.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/after/ftplugin/lua.lua b/after/ftplugin/lua.lua
new file mode 100644
index 0000000..dca196a
--- /dev/null
+++ b/after/ftplugin/lua.lua
@@ -0,0 +1,3 @@
+vim.keymap.set("n", "<Leader><Leader>x", "<CMD>source %<CR>", { desc = "Reloads the current config file" })
+vim.keymap.set("n", "<Leader>x", "<CMD>.lua<CR>", { desc = "Executes the current line" })
+vim.keymap.set("v", "<Leader>x", "<CMD>lua<CR>", { desc = "Executes the current selection" })