feat: add command system

This commit is contained in:
2026-07-14 23:13:11 +02:00
committed by femkrotek
parent 9959f59f57
commit 1ddcfe3592
2 changed files with 19 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
local M = {}
local function chai_command()
-- TODO: open main Chai buffer
-- TODO: add Chai command system (so `:Chai current pr#18 close` closes PR number 18 on current repo)
-- TODO: add smth like `:Chai https://git.kpgpmc.org/furkromek/chai.nvim/issues` opens issues on that repo
print('TODO: open main Chai buffer')
end
function M.setup()
vim.api.nvim_create_user_command('Chai', chai_command, { desc = "Open Chai menu" })
end
return M
+5
View File
@@ -1,11 +1,16 @@
local M = {}
local config = require('chai.config')
local commands = require('chai.commands')
--- initializes chai.nvim plugin
---@param opts any plugin options
function M.setup(opts)
-- set up configuration
config.setup(opts)
-- add commands
commands.setup()
end
return M