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
Copy file name to clipboardExpand all lines: doc/lua-console.nvim.txt
+18-11Lines changed: 18 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ development and Neovim exploration and configuration. Acts as a user friendly
22
22
replacement of command mode - messages loop and as a handy scratch pad to store
23
23
and test your code gists.
24
24
25
-
**Update: Although it originated as a tool for Lua development, it has now
25
+
**Update: although it originated as a tool for Lua development, it has now
26
26
evolved into supporting other languages too. See evaluating other languages.**
27
27
28
28
@@ -174,11 +174,11 @@ EVALUATING OTHER LANGUAGES ~
174
174
SETTING UP
175
175
176
176
- It is possible to setup external code executors for other languages. Evaluators
177
-
for `ruby` and `racket` are working out of the box, support for other languages
178
-
is coming. Meanwhile, you can easily setup your own language.
179
-
- Below is the default configuration which can be overridden or extended by your
180
-
custom config (`default_process_opts` will be replaced by language specific
181
-
opts), e.g. a possible config for `python` could be:
177
+
for `ruby`,`racket` and `python` are working out of the box, support for other
178
+
languages is coming. Meanwhile, you can easily setup your own language.
179
+
- Below is the default configuration, which can be overridden or extended by your
180
+
custom config, where `default_process_opts` will be replaced by language
181
+
specific opts, e.g. a possible config for `python` could be:
182
182
>lua
183
183
require('lua-console').setup {
184
184
external_evaluators = {
@@ -191,8 +191,6 @@ SETTING UP
191
191
}
192
192
}
193
193
<
194
-
- You can also setup a custom formatter to format the evaluator output before
195
-
appending results to the console or buffer. Example is in the config.
196
194
Default External Evaluators Settings
197
195
~
198
196
`exev_config.lua`
@@ -241,16 +239,16 @@ SETTING UP
241
239
242
240
return external_evaluators
243
241
<
242
+
- You can also setup a custom formatter to format the evaluator output before
243
+
appending results to the console or buffer. Example is in the config.
244
244
USAGE
245
245
- The language evaluator is determined either from (in order of precedence):
246
-
- The code prefix `===lang` on the line above your code snippet, in which case it only applies to the snippet directly below and it should be included in the selection
247
-
for evaluation. The prefix can be changed in the config.
246
+
- The code prefix `===lang` on the line above your code snippet, in which case it only applies to the snippet directly below. The prefix can be changed in the config.
248
247
- The code prefix on the top line of the console/buffer, in which case it applies to the whole buffer.
249
248
- The file type of the buffer.
250
249
>racket
251
250
===racket
252
251
253
-
254
252
(define (log str)
255
253
(displayln (format "~v" str)))
256
254
@@ -266,6 +264,15 @@ SETTING UP
266
264
===ruby
267
265
5.times { puts 'Hey' }
268
266
<
267
+
- Code inside Lua comments will be sytax highlighted.
268
+
>python
269
+
[[===python
270
+
list = [1, 3, 5, 7, 9]
271
+
272
+
for val in a:
273
+
print(list)
274
+
]]
275
+
<
269
276
270
277
271
278
ALTERNATIVES AND COMPARISON*lua-console.nvim-💻-lua-console-main-develop-luarocks-alternatives-and-comparison*
0 commit comments