|
1 | 1 | *nnn-dir.txt* Seamless nvim + nnn integration
|
2 | 2 | ==============================================================================
|
3 |
| -Author: Göran Gustafsson (gustafsson.g at gmail.com) |
| 3 | +Author: Göran Gustafsson <gustafsson.g@gmail.com> |
4 | 4 | License: BSD 3-Clause
|
5 | 5 | Version: 0.1.0
|
6 | 6 | Source: https://github.com/ggustafsson/nnn-dir.nvim
|
7 | 7 |
|
8 | 8 | ==============================================================================
|
9 |
| -1. Introduction *nnn-dir* |
| 9 | +1. Introduction *nnn-dir* |
10 | 10 |
|
11 |
| -`nnn-dir` replaces builtin |netrw| with external file manager `nnn`. Use |
12 |
| -commands |nvim|, |:edit|, |:split|, |:vsplit|, etc. |
| 11 | +- `nvim` plugin that replaces builtin |netrw| with external file manager |
| 12 | + `nnn`. |
| 13 | + |
| 14 | +- `nnn` is a real file manager that can be used outside of `nvim`. Learn once, |
| 15 | + use everywhere! |
| 16 | + |
| 17 | +- Seamless `nvim` + `nnn` integration. Use commands |nvim|, |:edit|, |:split|, |
| 18 | + |:vsplit|, etc. |
| 19 | + |
| 20 | +- Keeps |netrw|'s |netrw-gx| feature. Open up file/URL under cursor with `gx` |
| 21 | + keybinding. |
| 22 | + |
| 23 | +- Supports `nnn`'s "cd on quit" feature. See: |
| 24 | + https://github.com/jarun/nnn/wiki/Basic-use-cases#configure-cd-on-quit |
13 | 25 |
|
14 | 26 | ==============================================================================
|
15 |
| -2. Configuration *nnn-dir-configuration* |
| 27 | +2. Configuration *nnn-dir-configuration* |
16 | 28 |
|
17 | 29 | Enable `nnn-dir` with the following inside of `~/.config/nvim/init.[lua|vim]`:
|
18 | 30 | >
|
19 | 31 | [lua] require("nnn-dir").setup()
|
20 | 32 | <
|
| 33 | +Override `gx` keybinding with custom command: |
| 34 | +> |
| 35 | + nnoremap gx :silent !custom-command "<cfile>"<CR> |
| 36 | +< |
21 | 37 | ==============================================================================
|
22 | 38 | vim:tw=78:ts=8:noet:ft=help:norl:
|
0 commit comments