feat(nvim): update lua run keybind to support ranges, unsaved files

This commit is contained in:
Price Hiller 2024-02-24 16:03:49 -06:00
parent 36b3f7069c
commit 8f0f1de6bc
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -2,7 +2,12 @@ vim.opt_local.tabstop = 4
vim.opt_local.shiftwidth = 4
vim.opt_local.expandtab = true
vim.keymap.set("n", "<leader>fr", ":luafile %<CR>", {
vim.keymap.set("n", "<leader>fr", ":%lua<CR>", {
buffer = true,
silent = true,
})
vim.keymap.set("v", "<leader>fr", ":lua<CR>", {
buffer = true,
silent = true,
})