Modules/Neovim: Replace gitmessenger with Snacks.git
This commit is contained in:
@ -597,27 +597,6 @@ in {
|
|||||||
config = mkDefaultConfig name;
|
config = mkDefaultConfig name;
|
||||||
};
|
};
|
||||||
|
|
||||||
gitmessenger = {
|
|
||||||
name = "gitmessenger";
|
|
||||||
pkg = pkgs.vimPlugins.git-messenger-vim;
|
|
||||||
lazy = true;
|
|
||||||
cmd = ["GitMessenger"];
|
|
||||||
init = let
|
|
||||||
mappings = mylib.generators.toLuaObject {
|
|
||||||
git_messenger_no_default_mappings = true;
|
|
||||||
git_messenger_floating_win_opts = {
|
|
||||||
border = "rounded";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in ''
|
|
||||||
function()
|
|
||||||
for k, v in pairs(${mappings}) do
|
|
||||||
vim.g[k] = v
|
|
||||||
end
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
gitsigns = rec {
|
gitsigns = rec {
|
||||||
name = "gitsigns";
|
name = "gitsigns";
|
||||||
pkg = pkgs.vimPlugins.gitsigns-nvim;
|
pkg = pkgs.vimPlugins.gitsigns-nvim;
|
||||||
@ -1981,7 +1960,6 @@ in {
|
|||||||
|
|
||||||
direnv # Automatically load local environments
|
direnv # Automatically load local environments
|
||||||
flash # Highlight f/F search results
|
flash # Highlight f/F search results
|
||||||
gitmessenger # Show last git commit for the current line
|
|
||||||
gitsigns # Show git line additions/deletions/changes in the gutter
|
gitsigns # Show git line additions/deletions/changes in the gutter
|
||||||
haskell-tools # Haskell integration
|
haskell-tools # Haskell integration
|
||||||
illuminate # Highlight usages of word under cursor
|
illuminate # Highlight usages of word under cursor
|
||||||
@ -1990,7 +1968,6 @@ in {
|
|||||||
|
|
||||||
jdtls # Eclipse JDT language server integration for Java
|
jdtls # Eclipse JDT language server integration for Java
|
||||||
lastplace # Reopen a file at the last editing position
|
lastplace # Reopen a file at the last editing position
|
||||||
# leetcode # Solve leetcode problems
|
|
||||||
lint # Lint documents on save
|
lint # Lint documents on save
|
||||||
lspconfig # Language server configurations for different languages
|
lspconfig # Language server configurations for different languages
|
||||||
lualine # Status line
|
lualine # Status line
|
||||||
|
@ -684,8 +684,8 @@
|
|||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>gm";
|
key = "<leader>gm";
|
||||||
action = "<cmd>GitMessenger<cr>";
|
action = "<cmd>lua Snacks.git.blame_line()<cr>";
|
||||||
options.desc = "GitMessenger";
|
options.desc = "Git Blame";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user