Solution for keymap to copy branch name #1520
-
Hi everyone. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You could bind a keymapping to this function to accomplish that: function()
local current_branch = require("neogit.lib.git").branch.current()
vim.cmd.let(("@+='%s'"):format(current_branch))
end Hope that helps :) |
Beta Was this translation helpful? Give feedback.
-
thank you! it worked |
Beta Was this translation helpful? Give feedback.
You could bind a keymapping to this function to accomplish that:
Hope that helps :)