diff --git a/dots/.config/nvim/ftplugin/lua.lua b/dots/.config/nvim/ftplugin/lua.lua index 56ed27ed..bb550458 100644 --- a/dots/.config/nvim/ftplugin/lua.lua +++ b/dots/.config/nvim/ftplugin/lua.lua @@ -2,7 +2,12 @@ vim.opt_local.tabstop = 4 vim.opt_local.shiftwidth = 4 vim.opt_local.expandtab = true -vim.keymap.set("n", "fr", ":luafile %", { +vim.keymap.set("n", "fr", ":%lua", { + buffer = true, + silent = true, +}) + +vim.keymap.set("v", "fr", ":lua", { buffer = true, silent = true, })