Skip to content
Discussion options

You must be logged in to vote

Picker jj_log

opts = {
  picker = {
    previewers = {
      jj = {
        delta = true,
      },
    },
    sources = {
      jj_log = {
        title = 'jj log',
        supports_live = false,
        reversed = nil,
        cwd = nil,
        args = nil,
        finder = function(opts, ctx)
          local cwd
          cwd = opts and opts.cwd or vim.uv.cwd() or '.'
          cwd = svim.fs.normalize(cwd)
          cwd = vim.fs.root(cwd or 0, '.jj')
          if not cwd then
            Snacks.notify.error 'Cannot find `.jj` folder. To initialize a repository use `jj git init .`'
            ctx.picker.closed = true
            return {}
          end
          local template = [[

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@drowning-cat
Comment options

@oatovar
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by oatovar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants