You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`Snacks_terminal_opts`: table of options passed to Snacks.nvim terminal
74
-
-`win`: window positioning options
75
-
-`interactive`: whether terminal starts in interactive mode
103
+
-`terminal`: table of options passed to terminal
104
+
-`type`: type of terminal
105
+
-`builtin_opts`: options for built-in terminal
106
+
-`snacks_opts`: options for Snacks.nvim terminal
76
107
-`keymaps`: table of keybindings and their descriptions
77
108
78
109
#### Example config
@@ -84,12 +115,11 @@ opts = {
84
115
["rb"] ="ruby",
85
116
["py"] ="python"
86
117
},
87
-
Snacks_terminal_opts= {
88
-
win= {
89
-
position="right", -- Change terminal position to right
90
-
relative="editor"
91
-
},
92
-
interactive=true-- Always start in interactive mode
118
+
terminal= {
119
+
type="builtin",
120
+
builtin_opts= {
121
+
position="vsplit",
122
+
}
93
123
}
94
124
}
95
125
```
@@ -109,6 +139,12 @@ opts = {
109
139
- same as above, but stops before actually executing so you can add flags or confirm the command before pressing enter.
110
140
- necessarily, the terminal is interactive by default in this mode.
111
141
142
+
### Terminal Usage
143
+
144
+
When using the built-in terminal in wait mode:
145
+
- Press `<Esc>` to exit terminal mode and return to normal mode (if `escape_keymap` is enabled)
146
+
- Alternatively, use the default Neovim terminal escape sequence: `<C-\><C-n>`
147
+
112
148
### Shebang example with node
113
149
114
150
`test.js`
@@ -158,4 +194,4 @@ opts = {
158
194
159
195
## Credits
160
196
161
-
- plugin inspired by keymap script by u/linkarzu on r/neovim
197
+
- plugin inspired by keymap script by u/linkarzu on [r/neovim](https://www.reddit.com/r/neovim/comments/1ai19ux/execute_current_file_script_using_a_keymap_i_use/)
0 commit comments