diff options
| author | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2026-01-25 07:42:41 -0700 |
|---|---|---|
| committer | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2026-01-26 07:26:16 -0700 |
| commit | 66fff3b01259afddbcf5bfebddcc197ec4281f46 (patch) | |
| tree | c3e256b5be773676a7950907450892ae2ebc22b3 /scratch | |
| parent | 4325ec4f2f443cba038268992e78e81973849eb9 (diff) | |
| download | a4-66fff3b01259afddbcf5bfebddcc197ec4281f46.tar.xz a4-66fff3b01259afddbcf5bfebddcc197ec4281f46.zip | |
ok, skills-v2 attempt
Diffstat (limited to 'scratch')
| -rw-r--r-- | scratch/refresh.lua | 41 |
1 files changed, 9 insertions, 32 deletions
diff --git a/scratch/refresh.lua b/scratch/refresh.lua index aba679b..811ec9a 100644 --- a/scratch/refresh.lua +++ b/scratch/refresh.lua @@ -1,43 +1,20 @@ R("99") local _99 = require("99") +local Window = require("99.window") _99.setup({ completion = { custom_rules = { "~/.behaviors/", + "~/personal/skills/skills", }, source = "cmp", }, }) -local Ext = require("99.extensions") -local Agents = require("99.extensions.agents") -local Helpers = require("99.extensions.agents.helpers") -print(vim.inspect(Agents.rules(_99.__get_state()))) -print(vim.inspect(Helpers.ls("/home/theprimeagen/.behaviors"))) - ---- @class Config ---- @field width number ---- @field height number ---- @field offset_row number ---- @field offset_col number ---- @field border string -function create_window(config) - -- Create a new buffer - local buf = vim.api.nvim_create_buf(false, true) - - -- Configure the floating window - local win_config = { - relative = 'editor', - width = config.width, - height = config.height, - row = config.offset_row, - col = config.offset_col, - style = 'minimal', - border = 'rounded' - } - - -- Open the floating window - local win = vim.api.nvim_open_win(buf, true, win_config) - - return { buf = buf, win = win } -end +print(vim.inspect(_99.__get_state().rules)) +Window.capture_input({ + cb = function(success, result) + print("results") + end, + rules = _99.__get_state().rules, +}) |
