33 lines
925 B
Lua
33 lines
925 B
Lua
return {
|
|
"rhysd/git-messenger.vim",
|
|
|
|
cmd = "GitMessenger",
|
|
|
|
keys = function()
|
|
local icon = require("fschauen.util.icons").ui.Git
|
|
return {
|
|
-- stylua: ignore start
|
|
{ "<leader>gm", "<cmd>GitMessenger<cr>", desc = icon.." [g]it [m]essenger" },
|
|
-- stylua: ignore end
|
|
}
|
|
end,
|
|
|
|
init = function()
|
|
-- Disable default mappings, as I have my own for lazy-loading.
|
|
vim.g.git_messenger_no_default_mappings = true
|
|
|
|
-- Always move cursor into pop-up window immediately.
|
|
vim.g.git_messenger_always_into_popup = true
|
|
|
|
-- Add a border to the floating window, otherwise it's confusing.
|
|
vim.g.git_messenger_floating_win_opts = {
|
|
border = "rounded",
|
|
}
|
|
|
|
-- Make the UI a bit more compact by removing margins.
|
|
vim.g.git_messenger_popup_content_margins = false
|
|
|
|
-- Extra arguments passed to `git blame`:
|
|
-- vim.g.git_messenger_extra_blame_args = '-w'
|
|
end,
|
|
}
|