add my first (broken) rooter plugin

This commit is contained in:
Thomas Ruoff
2025-06-04 08:15:39 +02:00
parent 2c2f16696c
commit 3ba06cf1b9
3 changed files with 106 additions and 0 deletions

4
after/ftplugin/lua.lua Normal file
View File

@@ -0,0 +1,4 @@
-- Run selection (simpler, but requires visual mode to be active)
vim.keymap.set('v', '<leader>x', ':lua <C-R>=getline("\'<", "\'>")<CR><CR>', { desc = 'execute selection' })
-- Run whole buffer
vim.keymap.set('n', '<leader>xx', ':luafile %<CR>', { desc = 'execute buffer' })