Skip to content

Commit 29adc93

Browse files
committed
setup(): add to readme
1 parent 234b1fe commit 29adc93

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,18 @@ n³ will detect env variables defined in `vimrc`.
143143
let $NNN_TRASH=1
144144
```
145145

146+
#### Setup for `init.lua`
147+
148+
Use the same option names as you would in Vimscript, e.g.:
149+
150+
```lua
151+
require('nnn').setup{
152+
set_default_mappings = false,
153+
session = 'global',
154+
layout = { left = '20%' }
155+
}
156+
```
157+
146158
### Credits
147159

148160
Main n³ program: https://github.com/jarun/nnn

0 commit comments

Comments
 (0)