Skip to content

Cretezy/neo-tree-jj.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

neo-tree-jj.nvim

A Neo-tree source for Jujutsu/jj.

Features:

  • Shows changes files like jj status
  • Shows different status for added/modified/deleted files
  • Ability to add/move/delete/rename files/directories and copy/cut/paste

Screenshot

Quickstart

Lazy.nvim:

{
  "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,
    },
  },
},

After installing, open Neo-tree and navigate to the tab, or run :Neotree jj

About

A Neo-tree source for Jujustsu/jj

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages