feat: add command system
This commit is contained in:
@@ -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', chaiCommand, { desc = "Open Chai menu" })
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user