summaryrefslogtreecommitdiff
path: root/scratch
diff options
context:
space:
mode:
authorThePrimeAgain <theprimeagain@theprimeagain.com>2025-12-04 06:29:58 -0700
committerThePrimeAgain <theprimeagain@theprimeagain.com>2025-12-04 06:29:58 -0700
commit9b01699960cb6efbdd81762bd630e8451c2c2ed5 (patch)
treedaebc3bf8099bc68ea97c0c2e586a855deaa3fc3 /scratch
parent51b69a298234ac527cee052906efc1d88acc1f8c (diff)
downloada4-9b01699960cb6efbdd81762bd630e8451c2c2ed5.tar.xz
a4-9b01699960cb6efbdd81762bd630e8451c2c2ed5.zip
test harness almost in place
Diffstat (limited to 'scratch')
-rw-r--r--scratch/refresh.lua27
1 files changed, 21 insertions, 6 deletions
diff --git a/scratch/refresh.lua b/scratch/refresh.lua
index c90f76f..5347b0f 100644
--- a/scratch/refresh.lua
+++ b/scratch/refresh.lua
@@ -1,8 +1,23 @@
-local function pick_a_number_that_is_42()
- return 42
-end
+R("99")
+
+function foo() end
-function return_42()
- local number = pick_a_number_that_is_42()
- return number
+local ns_id = vim.api.nvim_create_namespace("turd-ferg")
+local function add_virtual_text()
+ vim.api.nvim_buf_clear_namespace(0, ns_id, 0, -1)
+ vim.api.nvim_buf_set_extmark(0, ns_id, 2, 0, {
+ virt_lines = {
+ {
+ { "foo bar 1", "Comment" },
+ },
+ {
+ { "foo bar 2", "error" },
+ },
+ {
+ { "foo bar 4", "Comment" },
+ },
+ },
+ })
end
+
+add_virtual_text()