refactor: simplify startup profiles and ignore local tooling configs

This commit is contained in:
2026-05-30 15:01:30 +08:00
parent 5cba0307a3
commit 94699474c7
36 changed files with 604 additions and 1166 deletions
+66 -32
View File
@@ -1,34 +1,68 @@
# NvimConfig
## Configuration for VSCode-Neovim
### `<leader>` +
|L1 |L2 |L3 |Function |
|--- |--- |--- |--- |
|s (search) |s |- | Search Symbols with VSCode Ctrl-P@ |
|s |b |- | Search Breadcrumbs |
|s |e |- | Search Editors Cross-Groups |
|`<leader>` |e |- | Toggle Editor Inside Group |
|`<leader>` |E |- | Toggle Editor Cross-Groups |
|`<leader>` |g |- | Toggle Groups |
|`<leader>` |z |- | Toggle Zen Mode |
|`<leader>` |/ |- | Toggle Flash.nvim Search |
|b (side bar) |e |- | Open Sidebar Explorer |
|b |s |- | Open Sidebar Search |
|c (code) |f |- | Format Code |
|c |t |- | Flash.nvim Treesitter |
|e (editor) |d |- | Close Editor |
|e |g |- | Search Editor Cross-Groups |
|e |i |- | Search Editor Inside Group |
|e |h |- | Navigate Editors in Group: Previous |
|e |l |- | Navigate Editors in Group: Next |
|e |m |n | Move Editor to Next Group |
|e |m |p | Move Editor to Previous Group |
|g (group) |= |- | Equal Groups Sizes |
|g |d |- | Close Group but Remain Editors |
|g |D |- | Close Group and Editors |
|g |s |- | Split Group Horizontally |
|g |v |- | Split Group Vertically |
|s (search) |f |- | Search Files with VSCode Ctrl-P |
|s |s |- | Search Symbols with VSCode Ctrl-P@ |
|s |b |- | Search Breadcrumbs |
|s |e |- | Search Editors Cross-Groups |
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 |