We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0027c3 commit 81fc3aaCopy full SHA for 81fc3aa
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,7 @@ 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)
+ print_to_buffer(#result > 0 and unpack(result) or nil)
394
else
395
err = err:match('EvaluationTimeout') and { 'Process timeout exceeded' } or clean_stacktrace(err)
396
vim.list_extend(print_buffer, err)
neovim.yml
@@ -22,5 +22,3 @@ globals:
22
any: true
23
stub:
24
25
-
26
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