An open API service indexing awesome lists of open source software.

https://github.com/liamg/peridot-config

My Peridot config for dotfiles etc.
https://github.com/liamg/peridot-config

Last synced: 10 months ago
JSON representation

My Peridot config for dotfiles etc.

Awesome Lists containing this project

README

          

# My Peridot Config

These are my personal dotfiles, managed with [peridot](https://github.com/liamg/peridot).

Currently for Arch + Ubuntu, though will likely work in many other places.

## Neovim

![neovim](./screenshot-neovim.png)

### GUI

| binding | |
|--------------|-|
| `n` | Toggle file tree
| `` | Previous buffer
| `` | Next buffer
| `` | Close buffer
| `` | Close all but current buffer
| `` | Magic pick buffer
| `` | Close floating window
| `j` | Open terminal
| `` | Close terminal
| `w` | Switch to floating window
| `fn` | Search by filename
| `fe` | Search by file content

### Git

| binding | |
|--------------|-|
| `hb` | Git blame line

### Code Actions

| binding | |
|--------------|-|
| `ca` | Trigger marked code action |

### File Tree

See https://github.com/kyazdani42/nvim-tree.lua#default-actions

### Go

| binding | command | |
| ------------ | ---------- | - |
| `` | | Go to definition |
| `` | | Go back |
| `gi` | | Go to implementation |
| `gr` | | Go to references |
| `gc` | | Generate comment
| | GoLint | Lint
| `gt` | GoAddTag |
| | GoRmTag |
| | GoClearTag |
| | GoImpl | cursor on struct, run`:GoImpl [interface]`
| `fs` | GoFillStruct | auto fill struct |
| `fS` | GoFillSwitch | fill switch |
| `ie` | GoIfErr | Add if err |
| `fp` | GoFixPlurals | change func foo(b int, a int, r int) -> func foo(b, a, r int) |
| `K` | | Show signature |
| `` | | Show signature help (`` to close) |

Also see https://github.com/ray-x/navigator.lua/blob/master/lua/navigator/lspclient/mapping.lua#L14

#### Testing

| binding | command | Description |
| ------------ | ------------------------ | ------------------------------------------------------- |
| `tt` | GoTest | go test ./...
| `tf` | GoTestFunc | run test for current func |
| | GoTestFunc -tags=yourtag | run test for current func with `-tags yourtag` option |
| `tF` | GoTestFile | run test for current file |
| | GoTestFile -tags=yourtag | run test for current folder with `-tags yourtag` option |
| `tp` | GoTestPkg | run test for current package/folder |
| | GoTestPkg -tags=yourtag | run test for current folder with `-tags yourtag` option |
| `ta` | GoAddTest | |
| | GoAddExpTest | Add tests for exported funcs |
| `tA` | GoAddAllTest | Add tests for all funcs |

#### Debugging

| binding | command | Description |
| ------------ | ---------------- | ------------------------------------------------ |
| `dd` | GoDebug | start debug session |
| `dT` | GoDebug test | start debug session for go test file |
| `dr` | GoDebug restart | restart debug session for go test file |
| `dn` | GoDebug nearest | start debug session for nearest go test function |
| `ds` | GoDebug stop | stop debug session and unmap debug keymap |
| `db` | GoBreakToggle | |
| `dB` | GoBreakCondition | conditional break |
| | GoDbgStop | Stop debug session, same as GoDebug stop |

###### Once debugging has started...

| Binding | |
|-------------------|-|
| `c` | continue
| `n` | next
| `s` | step
| `o` | stepout
| `S` | cap S: stop debug
| `u` | up
| `D` | cap D: down
| `C` | cap C: run to cursor
| `b` | toggle breakpoint
| `P` | cap P: pause
| `p` | print, hover value (also in visual mode)