blob: 5eb2929e8fc75416df03e83350e428267e331f6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Node5 - nvim config
## Run
```
nix run git+https://git.node5.net/nix/nvim
```
## Install
Add this to your NixOS flake inputs
```nix
node5-nvim.url = "git+https://git.node5.net/nix/nvim";
```
And this to `environment.systemPackages`
```nix
inputs.node5-nvim.packages.x86_64-linux.default
```
---
Print current config: `nvf-print-config nvim | bat --language lua`
## Handy shortcuts
- leader is space
- `<leader>ld` show linter error / warning list at bottom
- `<leader>/` find text in files - grep text in files
- `<leader>.` find files - grep files names
- `CTRL+T` terminal
- `<leader>g` show git diff pop up
### Code
- `<leader>ln` rename variable
- `CTRL+Left click` Go to definition
- `<leader>lgr` find all references
## Handy commands
- `:StripWhitespace` - remove unwanted trailing whitespace
- `:Noice` command to show a full message history
## TODO
- [ ] TODO Markdown preview new window
- [ ] TODO Smoothscrolling
- [ ] TODO Undo tree
|