diff options
| author | twells46 <173561638+twells46@users.noreply.github.com> | 2025-12-31 13:28:05 -0600 |
|---|---|---|
| committer | twells46 <173561638+twells46@users.noreply.github.com> | 2025-12-31 13:28:05 -0600 |
| commit | 2140ab51deed88e90eafebf9520fa5f9995dc7c9 (patch) | |
| tree | 03cf1dcd2900495c1efb79aaa85f3254ecd5fb87 /dot_config/nvim/lua/util/plugin.lua | |
| parent | ff8f50638e4b17a9d7cc88d2f0d9560b7effce39 (diff) | |
Migrate from stow
Diffstat (limited to 'dot_config/nvim/lua/util/plugin.lua')
| -rw-r--r-- | dot_config/nvim/lua/util/plugin.lua | 13 |
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 |