aboutsummaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/util
diff options
context:
space:
mode:
authortwells46 <173561638+twells46@users.noreply.github.com>2025-12-31 13:28:05 -0600
committertwells46 <173561638+twells46@users.noreply.github.com>2025-12-31 13:28:05 -0600
commit2140ab51deed88e90eafebf9520fa5f9995dc7c9 (patch)
tree03cf1dcd2900495c1efb79aaa85f3254ecd5fb87 /dot_config/nvim/lua/util
parentff8f50638e4b17a9d7cc88d2f0d9560b7effce39 (diff)
Migrate from stow
Diffstat (limited to 'dot_config/nvim/lua/util')
-rw-r--r--dot_config/nvim/lua/util/plugin.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/util/plugin.lua b/dot_config/nvim/lua/util/plugin.lua
new file mode 100644
index 0000000..8bf6a94
--- /dev/null
+++ b/dot_config/nvim/lua/util/plugin.lua
@@ -0,0 +1,13 @@
+local M = {}
+
+M.lazy_file_events = { 'BufReadPost', 'BufNewFile', 'BufWritePre' }
+
+function M.lazy_file()
+ -- Add support for the LazyFile event
+ local Event = require 'lazy.core.handler.event'
+
+ Event.mappings.LazyFile = { id = 'LazyFile', event = M.lazy_file_events }
+ Event.mappings['User LazyFile'] = Event.mappings.LazyFile
+end
+
+return M