mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 06:27:14 +01:00
add my first (broken) rooter plugin
This commit is contained in:
4
after/ftplugin/lua.lua
Normal file
4
after/ftplugin/lua.lua
Normal 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' })
|
||||
Reference in New Issue
Block a user