From dfa7fd5f208d42233198f7240014395200da764f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 18 Aug 2023 23:23:52 -0500 Subject: [PATCH] feat(nvim): add keybind to run luafile nvim invocation --- dots/.config/nvim/after/ftplugin/lua.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dots/.config/nvim/after/ftplugin/lua.lua b/dots/.config/nvim/after/ftplugin/lua.lua index 1759fbc4..d50475af 100644 --- a/dots/.config/nvim/after/ftplugin/lua.lua +++ b/dots/.config/nvim/after/ftplugin/lua.lua @@ -1,3 +1,8 @@ vim.opt_local.tabstop = 4 vim.opt_local.shiftwidth = 4 vim.opt_local.expandtab = true + +vim.keymap.set("n", "fr", ":luafile %", { + buffer = true, + silent = true +})