From 2b83649583c4010f04696bdfad28947320a1ae3d Mon Sep 17 00:00:00 2001 From: Brandon Conway Date: Sun, 14 Mar 2021 21:46:55 -0700 Subject: [PATCH] Add dev reloader --- lua/harpoon/dev.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lua/harpoon/dev.lua diff --git a/lua/harpoon/dev.lua b/lua/harpoon/dev.lua new file mode 100644 index 0000000..192cef2 --- /dev/null +++ b/lua/harpoon/dev.lua @@ -0,0 +1,12 @@ +-- Don't include this file, we should manually include it via +-- require("harpoon.dev").reload(); +-- +-- A quick mapping can be setup using something like: +-- :nmap rr :lua require("harpoon.dev").reload() +local M = {} + +M.reload = function() + require("plenary.reload").reload_module("harpoon"); +end + +return M