diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-05-06 17:00:32 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-05-06 17:05:34 +0200 |
| commit | 88db4f086e9248a79832f284d7d6d4117ae32519 (patch) | |
| tree | 0654258cf00cdda0e3ffe66c37c8702c97b6eda2 /lua | |
| parent | d218c60b7528aee1709a548c4836c5365dae4238 (diff) | |
| download | nvim-conf-88db4f086e9248a79832f284d7d6d4117ae32519.tar.gz nvim-conf-88db4f086e9248a79832f284d7d6d4117ae32519.zip | |
Rename my actions to avoid warning on the require
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/alpha/globals.lua | 4 | ||||
| -rw-r--r-- | lua/alpha/telescope/init.lua | 10 | ||||
| -rw-r--r-- | lua/alpha/telescope/my_actions.lua (renamed from lua/alpha/telescope/actions.lua) | 0 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lua/alpha/globals.lua b/lua/alpha/globals.lua index b575c0c..e445e72 100644 --- a/lua/alpha/globals.lua +++ b/lua/alpha/globals.lua @@ -13,11 +13,11 @@ dump = function(...) return unpack(args) end -RELOAD = function(...) +Reload = function(...) return require("plenary.reload").reload_module(...) end R = function(name) - RELOAD(name) + Reload(name) return require(name) end diff --git a/lua/alpha/telescope/init.lua b/lua/alpha/telescope/init.lua index 38cd9be..5d9f5ca 100644 --- a/lua/alpha/telescope/init.lua +++ b/lua/alpha/telescope/init.lua @@ -1,16 +1,16 @@ -SHOULD_RELOAD_TELESCOPE = true +local SHOULD_RELOAD_TELESCOPE = true local reloader = function() if SHOULD_RELOAD_TELESCOPE then - RELOAD "plenary" - RELOAD "telescope" - RELOAD "alpha.telescope.setup" + Reload "plenary" + Reload "telescope" + Reload "alpha.telescope.setup" end end local fb_actions = require("telescope").extensions.file_browser.actions local actions = require "telescope.actions" -local my_actions = require "alpha.telescope.actions" +local my_actions = require "alpha.telescope.my_actions" local M = {} diff --git a/lua/alpha/telescope/actions.lua b/lua/alpha/telescope/my_actions.lua index b0e9f10..b0e9f10 100644 --- a/lua/alpha/telescope/actions.lua +++ b/lua/alpha/telescope/my_actions.lua |