dotfiles/config/jj/config.toml (view raw)
| 1 | #:schema https://jj-vcs.github.io/jj/latest/config-schema.json |
| 2 | |
| 3 | [user] |
| 4 | name = "Oleksandr Smirnov" |
| 5 | email = "olexsmir@gmail.com" |
| 6 | |
| 7 | [ui] |
| 8 | default-command = "l" |
| 9 | editor = "nvim" |
| 10 | pager = "delta" |
| 11 | diff-editor = ":builtin" |
| 12 | diff-formatter = ":git" |
| 13 | |
| 14 | [signing] |
| 15 | backend = "ssh" |
| 16 | key = "~/.ssh/git-sign.pub" |
| 17 | |
| 18 | [git] |
| 19 | sign-on-push = true |
| 20 | private-commits = "description(glob:'wip:*') | description(glob:'private:*')" |
| 21 | |
| 22 | [remotes] |
| 23 | origin.auto-track-bookmarks = "glob:*" |
| 24 | olexsmir.auto-track-bookmarks = "glob:*" |
| 25 | upstream.auto-track-bookmarks = "main | master" |
| 26 | |
| 27 | [aliases] |
| 28 | l = ["log", "-r", "ancestors(reachable(@, mutable()), 2)"] |
| 29 | llog = ["log", "-r", ".."] |
| 30 | tug = ["bookmark", "move", "--from", "heads(::@- & bookmarks())", "--to", "@-"] |
| 31 | |
| 32 | [templates] |
| 33 | git_push_bookmark = '"olexsmir/" ++ change_id.short()' |
| 34 | draft_commit_description = ''' |
| 35 | concat( |
| 36 | coalesce(description, default_commit_description, "\n"), |
| 37 | "JJ: ignore-rest\n", |
| 38 | diff.git(), |
| 39 | ) |
| 40 | ''' |
| 41 | |
| 42 | [template-aliases] |
| 43 | "format_timestamp(timestamp)" = "timestamp.ago()" |
| 44 | |
| 45 | [fix.tools.stylua] |
| 46 | command = ["stylua", "-"] |
| 47 | patterns = ["glob:'**/*.lua'"] |
| 48 | |
| 49 | [fix.tools.gofumpt] |
| 50 | command = ["gofumpt"] |
| 51 | patterns = ["glob:'**/*.go'"] |
| 52 | |
| 53 | [fix.tools.gleam] |
| 54 | command = ["gleam", "format", "--stdin"] |
| 55 | patterns = ["glob:'**/*.gleam'"] |
| 56 | |
| 57 | [fix.tools.shfmt] |
| 58 | command = ["shfmt"] |
| 59 | patterns = ["glob:'**/*.sh'"] |