Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kicamon/nvim
a personal lightweight nvim config
https://github.com/kicamon/nvim
lua nvim
Last synced: 3 months ago
JSON representation
a personal lightweight nvim config
- Host: GitHub
- URL: https://github.com/kicamon/nvim
- Owner: Kicamon
- License: mit
- Created: 2023-05-13T13:18:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T10:49:06.000Z (3 months ago)
- Last Synced: 2024-10-18T06:37:15.064Z (3 months ago)
- Topics: lua, nvim
- Language: Lua
- Homepage:
- Size: 3.74 MB
- Stars: 44
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Personal Neovim Config“![demo](https://ice.frostsky.com/2024/09/19/08ca320f952cc6422dd6c0506fbd9afe.png)
### Keyboard Shortcuts
` = `
#### 1 Base
| Shortcut | Action | Mode |
|--------------------|----------------------------------------|------|
| `W` | save file | n |
| `Q` | quit file | n |
| `B` | delete current buffer | n |
| `N` | :nomal | v |
| `Y` | copy selected text to system clipboard | v |
| `ca` | copy full text to system clipboard | n |
| `sc` | toggle spell check | n |
| `sw` | toggle wrap | n |
| `` | nohlsearch | n |
| `` | escape from terminal input mode | t |
| `` | goto the next placeholder `<++>` | n, i |#### 2 Move
| Shortcut | Action | Mode |
|----------|---------------------------------|------|
| `j` | gj | n |
| `k` | gk | n |
| `H` | cursor to the start of the line | n |
| `J` | cursor down 10 terminal lines | n |
| `K` | cursor up 10 terminal lines | n |
| `L` | cursor to the end of the line | n |
| `` | move cursor right | i |
| `s` | flash jump | n,v |#### 3 Panes and tmux
| Shortcut | Action | Mode |
|---------------|-----------------------------------------------------------------------------|------|
| `sh` | create a new vertical split screen and place it left to the current window | n |
| `sj` | create a new split screen and place it below to the current window | n |
| `sk` | create a new split screen and place it above to the current window | n |
| `sl` | create a new vertical split screen and place it right to the current window | n |
| `smv` | rotate splits and arrange splits vertically | n |
| `smh` | rotate splits and arrange splits horizontally | n |
| `` | move cursor one window left | n |
| `` | move cursor one window down | n |
| `` | move cursor one window up | n |
| `` | move cursor one window right | n |#### 4 Edite
| Shortcut | Action | Mode |
|-------------------------------|----------------------------------|------|
| `S` | add surround chars | v |
| `cs` | change surround chars | n |
| `:Text tab_to_space` | replace leading tabs with spaces | n |
| `:Text delete_trailing_space` | delete trailing spaces | n |
| `ss` | quick substitute | v |
| `P` | paste image under `x11` | v |#### 5 Codeing
##### 5.1 Base
| Shortcut | Action | Mode |
|--------------|-----------------------------------|------|
| `;f` | formating code | n |
| `cc` | comment code | n, v |
| `` | select next item | i, s |
| `` | select prev item | i, s |
| `` | accept selected item | i |
| `` | code runing | n |
| `` | code runing with center float win | n |![pkvTyD0.md.png](https://s21.ax1x.com/2024/08/05/pkvTyD0.md.png)
##### 5.2 Lsp
| Shortcut | Action | Mode |
|--------------|--------------------------------------------|------|
| `pd` | peek definition with lspsaga | n |
| `` | edit selected definition | n |
| `` | vsplit and edit selected definition | n |
| `pr` | peek references with telescope | n |
| `K` | show hover doc with lspsaga | n |
| `wa` | add workspace folder | n |
| `wr` | remove workspace folder | n |
| `wl` | list workspace folders | n |
| `rn` | rename selected variable name with lspsaga | n |
| `ca` | show code action with lspsaga | n |
| `ot` | open outline with lspsaga | n |
| `d[` | goto diangostics prev | n |
| `d]` | goto diangostics next | n |#### 6 File Explorer
| Shortcut | Action | Mode |
|--------------|--------------------------------------|------|
| `ra` | edit file | n |
| `rh` | split left and edit file | n |
| `rj` | split bottom and edit file | n |
| `rk` | split top and edit file | n |
| `rl` | split right and edit file | n |
| `ff` | fuzzy search files with file name | n |
| `fw` | fuzzy search files with file content | n |![yazi](https://s21.ax1x.com/2024/08/05/pkvTBgs.png)
#### 7 Git
| Shortcut | Action | Mode |
|--------------|-------------------------|------|
| `g[` | goto git prev hunk | n |
| `g]` | goto git next hunk | n |
| `H` | git preview hunk inline | n |
| `gd` | git diffthis | n |#### 8 Other tools
| Shortcut | Action | Mode |
|-----------------|--------------------------------------------------------------------|------|
| `:Chdir` | jump to the directory where the current buffer | n |
| `:Chdir silent` | jump to the directory where the current buffer without notify | n |
| `N` | get treesitter node in current | n |
| `` | quickly select the closest text object among a group of candidates | n |
| `ww` | note manager | n |
| `` | create or enter note in wiki | n |
| `` | toggle float terminal if have not term, create it | n, t |
| `` | goto prev float terminal | t |
| `` | goto next float terminal | t |
| `` | add a float terminal | t |
| `` | delete a float terminal | t |
| `` | move float terminal right | t |
| `` | move float terminal center | t |### Plugin list
```shell
LuaSnip
cmp-buffer
cmp-nvim-lsp
cmp_luasnip
flash.nvim
fzf-lua
gitsigns.nvim
guard.nvim
indentmini.nvim
lspsaga.nvim
nvim-cmp
nvim-highlight-colors
nvim-lspconfig
nvim-treesitter
```### Dependencies
```shell
bash-language-server
clang
gpls
lua
lua-language-server
luarocks
pyright
python
python-black
python-pynvim
shfmt
typescript-language-server
vim-language-server
vscode-css-languageserver
vscode-html-languageserver
vscode-json-languageserver
yazi
```## Thanks
- [glepnir](https://github.com/glepnir/nvim)
- [theniceboy](https://github.com/theniceboy/nvim/tree/lua-migration)---
### License MIT