diff options
| author | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2026-01-15 22:02:44 -0700 |
|---|---|---|
| committer | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2026-01-15 22:02:44 -0700 |
| commit | a91be0f9edde34e6cd85d0e9f7730c5866d99e08 (patch) | |
| tree | 60c5c696417f2f6407bb5f8796beabaa4539b6c5 /scratch | |
| parent | 651c7df3523454568813a1b3dbb0a49f3fea9bdd (diff) | |
| download | a4-a91be0f9edde34e6cd85d0e9f7730c5866d99e08.tar.xz a4-a91be0f9edde34e6cd85d0e9f7730c5866d99e08.zip | |
final crazy commit idea
Diffstat (limited to 'scratch')
| -rw-r--r-- | scratch/refresh.lua | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/scratch/refresh.lua b/scratch/refresh.lua index 687ca70..aba679b 100644 --- a/scratch/refresh.lua +++ b/scratch/refresh.lua @@ -15,16 +15,29 @@ local Helpers = require("99.extensions.agents.helpers") print(vim.inspect(Agents.rules(_99.__get_state()))) print(vim.inspect(Helpers.ls("/home/theprimeagen/.behaviors"))) -function fizz_buzz(count) - 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 - end +--- @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 |
