Compare commits
No commits in common. "403c4adf138746aaf5920f10ce3a74e5455944d7" and "63c054848fdfeeb898b2a3702026e5a5a1ce4779" have entirely different histories.
403c4adf13
...
63c054848f
2 changed files with 34 additions and 0 deletions
32
lua/plugins/neo-tree-jj.lua
Normal file
32
lua/plugins/neo-tree-jj.lua
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
return {
|
||||||
|
"Cretezy/neo-tree-jj.nvim",
|
||||||
|
dependencies = {
|
||||||
|
{
|
||||||
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
-- Register the source
|
||||||
|
table.insert(opts.sources, "jj")
|
||||||
|
|
||||||
|
-- Optional: Replace git tab in neo-tree when in jj repo
|
||||||
|
if require("neo-tree.sources.jj.utils").get_repository_root() then
|
||||||
|
-- Remove git tab
|
||||||
|
for i, source in ipairs(opts.source_selector.sources) do
|
||||||
|
if source.source == "git_status" then
|
||||||
|
table.remove(opts.source_selector.sources, i)
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Add jj tab
|
||||||
|
table.insert(opts.source_selector.sources, {
|
||||||
|
display_name = " JJ",
|
||||||
|
source = "jj",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "<leader>mj", "<cmd>Neotree jj<cr>", desc = "NeoTree JJ" },
|
||||||
|
},
|
||||||
|
}
|
|
@ -6,6 +6,7 @@ return {
|
||||||
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
||||||
"debugloop/telescope-undo.nvim",
|
"debugloop/telescope-undo.nvim",
|
||||||
"nvim-telescope/telescope-ui-select.nvim",
|
"nvim-telescope/telescope-ui-select.nvim",
|
||||||
|
"zschreur/telescope-jj.nvim",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("telescope").setup({
|
require("telescope").setup({
|
||||||
|
@ -21,6 +22,7 @@ return {
|
||||||
|
|
||||||
-- Enable telescope fzf native, if installed
|
-- Enable telescope fzf native, if installed
|
||||||
pcall(require("telescope").load_extension, "fzf")
|
pcall(require("telescope").load_extension, "fzf")
|
||||||
|
pcall(require("telescope").load_extension, "jj")
|
||||||
pcall(require("telescope").load_extension, "scaladex")
|
pcall(require("telescope").load_extension, "scaladex")
|
||||||
pcall(require("telescope").load_extension, "ui-select")
|
pcall(require("telescope").load_extension, "ui-select")
|
||||||
pcall(require("telescope").load_extension, "undo")
|
pcall(require("telescope").load_extension, "undo")
|
||||||
|
|
Loading…
Reference in a new issue