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: README.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,27 @@
1
1
# 💻 Lua console
2
2
3
3
**lua-console.nvim** is yet another REPL console to execute Lua, configure Neovim, explore its API and settings.
4
-
Acts as a user friendly replacement of Command mode - Messages loop.
4
+
Acts as a user friendly replacement of command mode - messages loop and as a handy scratch pad to store and test code gists.
5
+
6
+
<imgsrc="doc/demo.gif">
5
7
6
8
## 💡 Motivation
7
9
8
-
After installing Neovim, it took me some time to configure it, learn its settings, structure and API, while learning Lua in the process.
9
-
I got fed up of constantly hitting `:`, typing `lua= command`, then typing `:messages` to see the output, only to find out that a made a typo or a syntax error and retyping the whole thing again, copying the paths from error stacktraces and so on. I needed something better, so there it is.
10
+
After installing Neovim, it took me some time to configure it, learn its settings, structure and API, while learning Lua in the process.
11
+
I got fed up of constantly hitting `:`, typing `lua= command`, then typing `:messages` to see the output, only to find out that a made a typo or a
12
+
syntax error and retyping the whole thing again, copying the paths from error stacktraces and so on. I needed something better, so there it is.
10
13
11
14
## ✨ Features
12
15
13
16
- Evaluate single line expressions
14
17
- Evaluate visually selected lines of code
15
-
- Pretty print Lua objects, including function details and their source path
18
+
- Pretty print Lua objects, including function details and their source paths
16
19
- Show normal and error output in the console, including output of print(), errors and stacktraces.
17
20
- Syntax highlighting and autocompletion
18
-
- Load Neovim’s messages into console
21
+
- Load Neovim’s messages into console for inspection and copy/paste
22
+
- Open links from stacktraces and function sources
19
23
- Save / Load console session
24
+
- Use as scratch pad for code gists
20
25
21
26
22
27
## 📦 Installation
@@ -29,7 +34,8 @@ return {
29
34
lazy=true, keys="`", opts= {},
30
35
}
31
36
```
32
-
otherwise: `require('lua-console').setup({opts})`
37
+
otherwise, install with your favourite package manager and add
38
+
`require('lua-console').setup({opts})` somewhere in your config.
0 commit comments