{"id":15858877,"url":"https://github.com/liamg/peridot-config","last_synced_at":"2025-04-01T19:46:06.083Z","repository":{"id":37759863,"uuid":"443791659","full_name":"liamg/peridot-config","owner":"liamg","description":"My Peridot config for dotfiles etc.","archived":false,"fork":false,"pushed_at":"2022-09-07T09:52:30.000Z","size":474,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-07T12:49:01.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liamg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-02T14:51:57.000Z","updated_at":"2023-09-08T18:30:14.000Z","dependencies_parsed_at":"2023-01-17T16:01:22.687Z","dependency_job_id":null,"html_url":"https://github.com/liamg/peridot-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fperidot-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fperidot-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fperidot-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fperidot-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liamg","download_url":"https://codeload.github.com/liamg/peridot-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246705296,"owners_count":20820701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T21:01:24.843Z","updated_at":"2025-04-01T19:46:06.055Z","avatar_url":"https://github.com/liamg.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Peridot Config\n\nThese are my personal dotfiles, managed with [peridot](https://github.com/liamg/peridot).\n\nCurrently for Arch + Ubuntu, though will likely work in many other places.\n\n## Neovim \n\n![neovim](./screenshot-neovim.png)\n\n### GUI\n\n| binding      | |\n|--------------|-|\n| `\u003cleader\u003en`  | Toggle file tree\n| `\u003cA-,\u003e`      | Previous buffer\n| `\u003cA-.\u003e`      | Next buffer\n| `\u003cA-c\u003e`      | Close buffer\n| `\u003cA-z\u003e`      | Close all but current buffer\n| `\u003cC-p\u003e`      | Magic pick buffer\n| `\u003cC-e\u003e`      | Close floating window\n| `\u003cleader\u003ej`  | Open terminal\n| `\u003cEsc\u003e`      | Close terminal\n| `\u003cC-w\u003ew`     | Switch to floating window\n| `\u003cleader\u003efn` | Search by filename\n| `\u003cleader\u003efe` | Search by file content\n\n### Git\n\n| binding      | |\n|--------------|-|\n| `\u003cleader\u003ehb` | Git blame line\n\n### Code Actions\n\n| binding      | |\n|--------------|-|\n| `\u003cleader\u003eca` | Trigger marked code action |\n\n### File Tree\n\nSee https://github.com/kyazdani42/nvim-tree.lua#default-actions\n\n### Go\n\n| binding      | command    |   |\n| ------------ | ---------- | - |\n| `\u003cC-]\u003e`      | | Go to definition |\n| `\u003cC-o\u003e`      | | Go back  |\n| `gi`         | | Go to implementation |\n| `gr`         | | Go to references |\n| `\u003cleader\u003egc` |            | Generate comment\n|              | GoLint     | Lint\n| `\u003cleader\u003egt` | GoAddTag   |             \n|              | GoRmTag    |             \n|              | GoClearTag |             \n|              | GoImpl     | cursor on struct, run`:GoImpl [interface]`\n| `\u003cleader\u003efs` | GoFillStruct | auto fill struct                                              |\n| `\u003cleader\u003efS` | GoFillSwitch | fill switch                                                   |\n| `\u003cleader\u003eie` | GoIfErr      | Add if err                                                    |\n| `\u003cleader\u003efp` | GoFixPlurals | change func foo(b int, a int, r int) -\u003e func foo(b, a, r int) |\n| `K`          | | Show signature |\n| `\u003cC-k\u003e`      | | Show signature help (`\u003cC-e\u003e` to close) |\n\nAlso see https://github.com/ray-x/navigator.lua/blob/master/lua/navigator/lspclient/mapping.lua#L14\n\n#### Testing\n\n| binding      | command                  | Description                                             |\n| ------------ | ------------------------ | ------------------------------------------------------- |\n| `\u003cleader\u003ett` | GoTest                   | go test ./...\n| `\u003cleader\u003etf` | GoTestFunc               | run test for current func                               |\n|              | GoTestFunc -tags=yourtag | run test for current func with `-tags yourtag` option   |\n| `\u003cleader\u003etF` | GoTestFile               | run test for current file                               |\n|              | GoTestFile -tags=yourtag | run test for current folder with `-tags yourtag` option |\n| `\u003cleader\u003etp` | GoTestPkg                | run test for current package/folder                     |\n|              | GoTestPkg -tags=yourtag  | run test for current folder with `-tags yourtag` option |\n| `\u003cleader\u003eta` | GoAddTest                |                                                         |\n|              | GoAddExpTest             | Add tests for exported funcs                            |\n| `\u003cleader\u003etA` | GoAddAllTest             | Add tests for all funcs                                 |\n\n\n#### Debugging\n\n| binding      | command          | Description                                      |\n| ------------ | ---------------- | ------------------------------------------------ |\n| `\u003cleader\u003edd` | GoDebug          | start debug session                              |\n| `\u003cleader\u003edT` | GoDebug test     | start debug session for go test file             |\n| `\u003cleader\u003edr` | GoDebug restart  | restart debug session for go test file           |\n| `\u003cleader\u003edn` | GoDebug nearest  | start debug session for nearest go test function |\n| `\u003cleader\u003eds` | GoDebug stop     | stop debug session and unmap debug keymap        |\n| `\u003cleader\u003edb` | GoBreakToggle    |                                                  |\n| `\u003cleader\u003edB` | GoBreakCondition | conditional break                                |\n|              | GoDbgStop        | Stop debug session, same as GoDebug stop         |\n\n###### Once debugging has started...\n\n| Binding           | |\n|-------------------|-|\n| `c` |\tcontinue\n| `n` |\tnext\n| `s` |\tstep\n| `o` |\tstepout\n| `S` |\tcap S: stop debug\n| `u` |\tup\n| `D` |\tcap D: down\n| `C` |\tcap C: run to cursor\n| `b` |\ttoggle breakpoint\n| `P` |\tcap P: pause\n| `p` |\tprint, hover value (also in visual mode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Fperidot-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliamg%2Fperidot-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Fperidot-config/lists"}