Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tangledhelix/init.lua

My Neovim config
https://github.com/tangledhelix/init.lua

Last synced: 19 days ago
JSON representation

My Neovim config

Awesome Lists containing this project

README

        

# README

This is my Neovim config.

I use this config on macOS. There's no reason it wouldn't work on Linux, BSD,
etc, but most distros have NeoVim 0.7 or earlier so I don't bother.

## Requirements

- Neovim 0.9+
- LuaJIT

Optional, but some things won't work without them:

- ripgrep (for Telescope "find string" `fs`)
- tree-sitter and Node.js (for tree-sitter plugins)
- lazygit (for LazyGit `g`)
- prettier (for NeoFormat)

## Custom key maps

(I use `` as my ``.)

| Mode | Map | Plugin(s) | Description |
|--------|-----------------------|--------------------|-------------------------------------------------------------|
| normal | `` | harpoon | jump to next file in Harpoon list |
| normal | `` | harpoon | jump to previous file in Harpoon list |
| normal | `` | fterm | toggle terminal pane |
| normal | `[t`, `]t` | todo-comments | jump to previous or next TODO/FIX/etc comment |
| normal | `` | harpoon | open Harpoon window |
| normal | ` a` | harpoon | add current file/buffer to Harpoon list |
| normal | ` b` | dap | toggle breakpoint |
| normal | ` B` | dap | set breakpoint, overwrite if necessary |
| normal | ` df` | dap | debug: view stack frame in a centered floating window |
| normal | ` dh` | dap | debug: view value of thing under cursor in a hover |
| normal | ` dc` | dap | debug: Continue |
| normal | ` di` | dap | debug: step Into |
| normal | ` do` | dap | debug: step Out |
| normal | ` dv` | dap | debug: step oVer |
| normal | ` dl` | dap | debug: run last debug config |
| normal | ` dp` | dap | debug: view value of thing under cursor in preview window |
| normal | ` dr` | dap | debug: open REPL |
| normal | ` ds` | dap | debug: view current scopes in a centered floating window |
| normal | ` e` | | open file explorer |
| normal | ` f.` | telescope | "find " - fuzzy find in this buffer |
| normal | ` fa` | telescope | "find again" - open with same search as last time |
| normal | ` fb` | telescope | "find buffer" |
| normal | ` fc` | telescope | "find command" |
| normal | ` fC` | telescope | "find Colorscheme" |
| normal | ` fd` | telescope | "find in diagnostics" |
| normal | ` ff` | telescope | "find file" |
| normal | ` fg` | telescope | "find in git" - honors .gitignore |
| normal | ` fhc` | telescope | "find in command history" |
| normal | ` fhs` | telescope | "find in search history" |
| normal | ` fj` | telescope | "find in jumplist" |
| normal | ` fm` | telescope | "find mark" |
| normal | ` fs` | telescope | "find string" (requires ripgrep) |
| normal | ` ft` | telescope | "find in tree-sitter" |
| normal | ` F` | neoformat | run Neoformat on file (requires prettier) |
| normal | ` g` | lazygit | open lazygit UI (requires lazygit) |
| normal | ` L` | lazy | open lazy UI (plugin manager) |
| normal | ` lp` | dap | set breakpoint with log, {var} interpolation |
| normal | ` M` | mason | open mason (LSP, linter, formatter, DAP manager) |
| normal | ` p` | | paste from system clipboard |
| normal | ` P` | | paste (before cursor) from system clipboard |
| normal | ` y ` | | copy to system clipboard |
| normal | ` z` | | toggle wrap mode |
| visual | `J` | | move selection down, with re-indent |
| visual | `K` | | move selection up, with re-indent |
| visual | ` y` | | copy selection to system clipboard |