summaryrefslogtreecommitdiff
path: root/scratch/refresh.lua
blob: 687a69833accd0bc90e3c220a407d52e8d1ef74c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---@diagnostic disable-next-line: undefined-global
R("99")
local _99 = require("99")
local Window = require("99.window")
_99.setup({
  completion = {
    custom_rules = {
      "~/personal/skills/skills",
    },
    source = "cmp",
  },
})

Window.capture_input("test", {
  cb = function(_, _)
    print("results")
  end,
  on_load = function()
    print("on_load")
    require("99.extensions").setup_buffer(require("99").__get_state())
  end,
  rules = _99.__get_state().rules,
})