feat(nvim): update lua run keybind to support ranges, unsaved files
This commit is contained in:
parent
36b3f7069c
commit
8f0f1de6bc
@ -2,7 +2,12 @@ vim.opt_local.tabstop = 4
|
|||||||
vim.opt_local.shiftwidth = 4
|
vim.opt_local.shiftwidth = 4
|
||||||
vim.opt_local.expandtab = true
|
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,
|
buffer = true,
|
||||||
silent = true,
|
silent = true,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user