69 lines
1.9 KiB
Markdown
69 lines
1.9 KiB
Markdown
# NvimConfig
|
|
|
|
This is a Neovim 0.12+ configuration with no dependency on lazy.nvim or LazyVim.
|
|
|
|
## Layout
|
|
|
|
```text
|
|
init.lua
|
|
lua/
|
|
profiles/
|
|
native.lua
|
|
vscode.lua
|
|
plugins/
|
|
pack.lua
|
|
native/
|
|
vscode/
|
|
```
|
|
|
|
## Startup Flow
|
|
|
|
- `init.lua` is the only entrypoint.
|
|
- If started from VSCode (`vim.g.vscode`), it loads `profiles.vscode`.
|
|
- Otherwise it loads `profiles.native`.
|
|
|
|
## Plugin Management
|
|
|
|
This config uses Neovim built-in `vim.pack` through `lua/plugins/pack.lua`.
|
|
|
|
- Plugin declarations live in `lua/profiles/*.lua`.
|
|
- Run `:lua vim.pack.update()` to update plugins.
|
|
- `nvim-pack-lock.json` is intentionally not tracked.
|
|
|
|
## Style Formatting
|
|
|
|
Lua formatting is configured in `.stylua.toml`.
|
|
This file is for formatting only; runtime/editor options stay in Lua code.
|
|
|
|
## VSCode Keybindings
|
|
|
|
### `<leader>` +
|
|
|
|
| L1 | L2 | L3 | Function |
|
|
| --- | --- | --- | --- |
|
|
| `<leader>` | `e` | - | Toggle Editor Inside Group |
|
|
| `<leader>` | `E` | - | Toggle Editor Cross Groups |
|
|
| `<leader>` | `g` | - | Focus Next Group |
|
|
| `<leader>` | `z` | - | Toggle Zen Mode |
|
|
| `<leader>` | `/` | - | Toggle Flash Search |
|
|
| `b` | `e` | - | Open Sidebar Explorer |
|
|
| `b` | `s` | - | Open Sidebar Search |
|
|
| `c` | `f` | - | Format Code |
|
|
| `c` | `t` | - | Flash Treesitter |
|
|
| `e` | `d` | - | Close Editor |
|
|
| `e` | `g` | - | Search Editor Cross Groups |
|
|
| `e` | `i` | - | Search Editor Inside Group |
|
|
| `e` | `h` | - | Previous Editor In Group |
|
|
| `e` | `l` | - | Next Editor In Group |
|
|
| `e` | `m` | `n` | Move Editor To Next Group |
|
|
| `e` | `m` | `p` | Move Editor To Previous Group |
|
|
| `g` | `=` | - | Equal Group Size |
|
|
| `g` | `d` | - | Close Group, Keep Editors |
|
|
| `g` | `D` | - | Close Group And Editors |
|
|
| `g` | `s` | - | Split Group Horizontally |
|
|
| `g` | `v` | - | Split Group Vertically |
|
|
| `s` | `f` | - | Search Files |
|
|
| `s` | `s` | - | Search Symbols |
|
|
| `s` | `b` | - | Search Breadcrumbs |
|
|
| `s` | `e` | - | Search Editors Cross Groups |
|