From 1293de4265834006d891e93772ac5f810f9f49c7 Mon Sep 17 00:00:00 2001 From: Charles Crete Date: Fri, 10 May 2024 12:08:10 -0400 Subject: [PATCH] Rename lua/jj to lua/telescope-jj Fixed #6 --- lua/jj/init.lua | 9 --------- lua/{jj => telescope-jj}/conflicts.lua | 2 +- lua/{jj => telescope-jj}/diff.lua | 2 +- lua/{jj => telescope-jj}/files.lua | 2 +- lua/telescope-jj/init.lua | 9 +++++++++ lua/{jj => telescope-jj}/utils.lua | 0 lua/telescope/_extensions/jj.lua | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 lua/jj/init.lua rename lua/{jj => telescope-jj}/conflicts.lua (96%) rename lua/{jj => telescope-jj}/diff.lua (95%) rename lua/{jj => telescope-jj}/files.lua (94%) create mode 100644 lua/telescope-jj/init.lua rename lua/{jj => telescope-jj}/utils.lua (100%) diff --git a/lua/jj/init.lua b/lua/jj/init.lua deleted file mode 100644 index ddbf3a6..0000000 --- a/lua/jj/init.lua +++ /dev/null @@ -1,9 +0,0 @@ -local conflicts = require("jj.conflicts") -local diff = require("jj.diff") -local files = require("jj.files") - -return { - conflicts = conflicts, - diff = diff, - files = files, -} diff --git a/lua/jj/conflicts.lua b/lua/telescope-jj/conflicts.lua similarity index 96% rename from lua/jj/conflicts.lua rename to lua/telescope-jj/conflicts.lua index c9eb0d5..9a3422d 100644 --- a/lua/jj/conflicts.lua +++ b/lua/telescope-jj/conflicts.lua @@ -2,7 +2,7 @@ local finders = require("telescope.finders") local pickers = require("telescope.pickers") local conf = require("telescope.config").values local make_entry = require("telescope.make_entry") -local utils = require("jj.utils") +local utils = require("telescope-jj.utils") return function(opts) opts = opts or {} diff --git a/lua/jj/diff.lua b/lua/telescope-jj/diff.lua similarity index 95% rename from lua/jj/diff.lua rename to lua/telescope-jj/diff.lua index 533a19f..13bc88e 100644 --- a/lua/jj/diff.lua +++ b/lua/telescope-jj/diff.lua @@ -2,7 +2,7 @@ local finders = require("telescope.finders") local pickers = require("telescope.pickers") local conf = require("telescope.config").values local make_entry = require("telescope.make_entry") -local utils = require("jj.utils") +local utils = require("telescope-jj.utils") return function(opts) opts = opts or {} diff --git a/lua/jj/files.lua b/lua/telescope-jj/files.lua similarity index 94% rename from lua/jj/files.lua rename to lua/telescope-jj/files.lua index 8fd7375..cd11794 100644 --- a/lua/jj/files.lua +++ b/lua/telescope-jj/files.lua @@ -2,7 +2,7 @@ local finders = require("telescope.finders") local pickers = require("telescope.pickers") local conf = require("telescope.config").values local make_entry = require("telescope.make_entry") -local utils = require("jj.utils") +local utils = require("telescope-jj.utils") return function(opts) opts = opts or {} diff --git a/lua/telescope-jj/init.lua b/lua/telescope-jj/init.lua new file mode 100644 index 0000000..e96f2d5 --- /dev/null +++ b/lua/telescope-jj/init.lua @@ -0,0 +1,9 @@ +local conflicts = require("telescope-jj.conflicts") +local diff = require("telescope-jj.diff") +local files = require("telescope-jj.files") + +return { + conflicts = conflicts, + diff = diff, + files = files, +} diff --git a/lua/jj/utils.lua b/lua/telescope-jj/utils.lua similarity index 100% rename from lua/jj/utils.lua rename to lua/telescope-jj/utils.lua diff --git a/lua/telescope/_extensions/jj.lua b/lua/telescope/_extensions/jj.lua index 44cb2fc..61e28f8 100644 --- a/lua/telescope/_extensions/jj.lua +++ b/lua/telescope/_extensions/jj.lua @@ -8,5 +8,5 @@ return telescope.register_extension({ setup = function(ext_config, config) -- access extension config and user config end, - exports = require("jj"), + exports = require("telescope-jj"), })