aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-01-08 22:48:57 -0800
committerGitHub <noreply@github.com>2020-01-08 22:48:57 -0800
commit25afa10f9277dd6148a6abb3d7577c67f479fce2 (patch)
treef716d09f58416c4f4329743578b8aa536f20ae49 /test/functional/helpers.lua
parentb6276f5aee835a6d44b2957027c5399c976c6647 (diff)
parent0a1c6d9a374a0c984515d0af43b1c71af6c55eb2 (diff)
downloadrneovim-25afa10f9277dd6148a6abb3d7577c67f479fce2.tar.gz
rneovim-25afa10f9277dd6148a6abb3d7577c67f479fce2.tar.bz2
rneovim-25afa10f9277dd6148a6abb3d7577c67f479fce2.zip
Merge #11669 'LSP: differentiate diagnostic underline by severity'
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 0fdfcd70ba..e0012c6ced 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -559,6 +559,11 @@ function module.wait()
session:request('nvim_eval', '1')
end
+function module.buf_lines(bufnr)
+ return module.exec_lua("return vim.api.nvim_buf_get_lines((...), 0, -1, false)", bufnr)
+end
+
+--@see buf_lines()
function module.curbuf_contents()
module.wait() -- Before inspecting the buffer, process all input.
return table.concat(module.curbuf('get_lines', 0, -1, true), '\n')