Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tangledhelix/init.lua
- Owner: tangledhelix
- Created: 2023-05-29T06:06:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-26T14:52:00.000Z (6 months ago)
- Last Synced: 2024-06-26T18:04:23.802Z (6 months ago)
- Language: Lua
- Size: 73.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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+
- LuaJITOptional, 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 |