We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0027c3 commit 2e5e65bCopy full SHA for 2e5e65b
.github/actions/build/action.yml
@@ -25,15 +25,15 @@ runs:
25
using: "composite"
26
steps:
27
28
- - uses: actions/cache@v3
29
- id: cache-luarocks
30
- name: Restore cache for luarocks packages.
31
- with:
32
- path: |
33
- ~/.luarocks
34
- key: ${{ runner.os }}-luarocks-${{ inputs.luarocks_version }}
35
- restore-keys: |
36
- ${{ runner.os }}-luarocks-
+ # - uses: actions/cache@v3
+ # id: cache-luarocks
+ # name: Restore cache for luarocks packages.
+ # with:
+ # path: |
+ # ~/.luarocks
+ # key: ${{ runner.os }}-luarocks-${{ inputs.luarocks_version }}
+ # restore-keys: |
+ # ${{ runner.os }}-luarocks-
37
38
- run: date +%F > todays-date
39
shell: bash
@@ -50,14 +50,12 @@ runs:
50
version: ${{ inputs.nvim_version }}
51
52
- name: Setup Lua
53
- uses: leso-kn/gh-actions-lua@master
+ uses: leafo/gh-actions-lua@v11
54
with:
55
luaVersion: "5.1"
56
57
- name: Setup LuaRocks
58
- uses: hishamhm/gh-actions-luarocks@master
59
- # FIXME: caching .luarocks doesn't set up the environment variables (PATH, LUA_PATH, ...) properly
60
- # if: steps.cache-luarocks.outputs.cache-hit != 'true'
+ uses: leafo/gh-actions-luarocks@v5
61
62
luarocksVersion: ${{ inputs.luarocks_version }}
63
@@ -67,7 +65,7 @@ runs:
67
65
68
66
69
- name: Install busted and nlua
70
- if: steps.cache-luarocks.outputs.cache-hit != 'true'
+ # if: steps.cache-luarocks.outputs.cache-hit != 'true'
71
run: |
72
luarocks install busted --local
73
luarocks install luacheck --local
README.md
@@ -75,7 +75,7 @@ opts = {
75
load_on_start = true, -- load saved session on start
76
preserve_context = true, -- preserve results between evaluations
77
strip_local = true, -- remove local identifier from source code
78
- print_one_line_results = true, -- prints one line results, even if already shown as virtual text
+ show_one_line_results = true, -- prints one line results, even if already shown as virtual text
79
notify_result = false, -- notify result
80
clear_before_eval = false, -- clear output below result prefix before evaluation of the whole buffer
81
process_timeout = 2 * 1e5, -- number of instructions to process before timeout
lua/lua-console/config.lua
@@ -8,7 +8,7 @@ local default_config = {
8
9
10
11
12
13
14
lua/lua-console/utils.lua
@@ -390,7 +390,12 @@ function lua_evaluator(lines, ctx)
390
391
if status then
392
table.remove(result, 1)
393
- _ = #result > 0 and print_to_buffer(unpack(result)) or print_to_buffer(nil)
+
394
+ if #result > 0 then
395
+ print_to_buffer(unpack(result))
396
+ else
397
+ print_to_buffer(nil)
398
+ end
399
else
400
err = err:match('EvaluationTimeout') and { 'Process timeout exceeded' } or clean_stacktrace(err)
401
vim.list_extend(print_buffer, err)
neovim.yml
@@ -22,5 +22,3 @@ globals:
22
any: true
23
stub:
24
-
spec/unit/mappings_spec.lua
@@ -215,7 +215,7 @@ describe('lua-console.nvim - mappings', function()
215
assert.has_string(vim.fn.bufname(new_buf), 'nvim/runtime/lua/vim/lsp.lua')
216
217
local line = vim.fn.line('.')
218
- assert.is_same(line, 281)
+ assert.is_same(line, 652)
219
end)
220
221
it('opens a split with file from stacktrace', function()
@@ -235,7 +235,7 @@ describe('lua-console.nvim - mappings', function()
235
assert.has_string(vim.fn.bufname(new_buf), path)
236
237
238
- assert.is_same(line, 189)
+ assert.is_same(line, 173)
239
240
241
it('sets autocommand to close window on lost focus', function()
@@ -301,7 +301,7 @@ describe('lua-console.nvim - mappings', function()
301
302
303
304
305
306
307
it('preserves context', function()
0 commit comments