Restructure
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
-- plugin/gemini/init.lua
|
-- plugin/gemini/init.lua
|
||||||
print(vim.o.runtimepath)
|
print(vim.o.runtimepath)
|
||||||
local api = require("gemini.plugin.gemini.api")
|
require("gemini.api")
|
||||||
|
|
||||||
local function gemini_query(prompt)
|
local function gemini_query(prompt)
|
||||||
local response = api.get_response(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)
|
-- Add a setup function (even if it's empty)
|
||||||
local function setup()
|
local function setup()
|
||||||
print("gemini.setup() called") -- For debugging
|
print("gemini.setup() called") -- For debugging
|
||||||
local api = require("gemini.plugin.gemini.api")
|
require("gemini.api")
|
||||||
print("api module loaded:", api) -- For debugging
|
print("api module loaded:", api) -- For debugging
|
||||||
-- Optional: Add any initialization logic here
|
-- Optional: Add any initialization logic here
|
||||||
end
|
end
|
7
plugin/gemini.lua
Normal file
7
plugin/gemini.lua
Normal 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()
|
Reference in New Issue
Block a user