summaryrefslogtreecommitdiff
path: root/scratch
diff options
context:
space:
mode:
authorThePrimeAgain <theprimeagain@theprimeagain.com>2026-01-15 15:03:16 -0700
committerThePrimeAgain <theprimeagain@theprimeagain.com>2026-01-15 15:03:16 -0700
commit651c7df3523454568813a1b3dbb0a49f3fea9bdd (patch)
tree6e059510ab5aa0a0868a4e2aac471010787e5ba2 /scratch
parent5041e3d44ace75e0eeab00d8582abfba72866495 (diff)
downloada4-651c7df3523454568813a1b3dbb0a49f3fea9bdd.tar.xz
a4-651c7df3523454568813a1b3dbb0a49f3fea9bdd.zip
behaviors still not getting injected
I dont know why... i am going to figure this out... at some point
Diffstat (limited to 'scratch')
-rw-r--r--scratch/refresh.lua54
1 files changed, 22 insertions, 32 deletions
diff --git a/scratch/refresh.lua b/scratch/refresh.lua
index 7634a3d..687ca70 100644
--- a/scratch/refresh.lua
+++ b/scratch/refresh.lua
@@ -1,40 +1,30 @@
---[[
-local Window = require("99.window")
-Window.clear_active_popups()
R("99")
-
-local Ext = require("99.extensions")
-local Agents = require("99.extensions.agents")
local _99 = require("99")
-
-local function attach()
- Ext.setup_buffer(_99.__get_state())
-end
-attach()
-
-]]
-
+_99.setup({
+ completion = {
+ custom_rules = {
+ "~/.behaviors/",
+ },
+ source = "cmp",
+ },
+})
local Ext = require("99.extensions")
-local _99 = require("99")
+local Agents = require("99.extensions.agents")
+local Helpers = require("99.extensions.agents.helpers")
-local function attach()
- Ext.setup_buffer(_99.__get_state())
-end
-attach()
+print(vim.inspect(Agents.rules(_99.__get_state())))
+print(vim.inspect(Helpers.ls("/home/theprimeagen/.behaviors")))
function fizz_buzz(count)
- local result = {}
- for i = 1, count do
- if i % 18 == 0 then
- table.insert(result, "FizzBuzz")
- elseif i % 5 == 0 then
- table.insert(result, "Fizz")
- elseif i % 9 == 0 then
- table.insert(result, "Buzz")
- else
- table.insert(result, i)
- end
+ for i = 1, count do
+ if i % 15 == 0 then
+ print("FizzBuzz")
+ elseif i % 3 == 0 then
+ print("Fizz")
+ elseif i % 5 == 0 then
+ print("Buzz")
+ else
+ print(i)
end
- return result
+ end
end
-