feat(picker): Add a snacks picker with jj status command

This commit is contained in:
NicolasGB
2025-06-30 17:42:54 +02:00
parent a5b27fcb1b
commit b258574092
5 changed files with 163 additions and 17 deletions
+8 -6
View File
@@ -1,22 +1,24 @@
local M = {}
local cmd = require("jj.cmd")
M.picker_config = {
snacks = {
layout = "horizontal",
},
}
local picker = require("jj.picker")
--- Jujutsu plugin configuration
--- @class jj.Config
M.config = {
-- Default configuration
--- @type jj.picker.config
picker = {
snacks = {},
},
}
--- Setup the plugin
--- @param opts jj.Config: Options to configure the plugin
function M.setup(opts)
M.config = vim.tbl_deep_extend("force", M.config, opts or {})
picker.setup(opts.picker)
cmd.register_command()
end