Restructure

This commit is contained in:
Jonas Widen 2025-03-16 14:09:26 +01:00
parent 35cda55e5b
commit dad689ded2
3 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
-- plugin/gemini/init.lua
print(vim.o.runtimepath)
local api = require("gemini.plugin.gemini.api")
require("gemini.api")
local function gemini_query(prompt)
local response = api.get_response(prompt)
@ -48,7 +48,7 @@ end, { desc = "Query Google AI (via Input)" })
-- Add a setup function (even if it's empty)
local function setup()
print("gemini.setup() called") -- For debugging
local api = require("gemini.plugin.gemini.api")
require("gemini.api")
print("api module loaded:", api) -- For debugging
-- Optional: Add any initialization logic here
end

7
plugin/gemini.lua Normal file
View File

@ -0,0 +1,7 @@
if vim.g.loaded_gemini then
return
end
vim.g.loaded_gemini = true
-- Optional: Auto-setup the plugin
-- require("gemini").setup()