add GitShowCommit command
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
local git = require("user.git")
|
||||||
|
|
||||||
vim.api.nvim_add_user_command("OrganizeImports", function()
|
vim.api.nvim_add_user_command("OrganizeImports", function()
|
||||||
require("user.utils").lsp_organize_imports()
|
require("user.utils").lsp_organize_imports()
|
||||||
end, {})
|
end, {})
|
||||||
|
|
||||||
|
vim.api.nvim_add_user_command("GitShowCommit", function()
|
||||||
|
local commit = git.get_commit_hash_for_current_line()
|
||||||
|
|
||||||
|
vim.cmd(":Git show " .. commit)
|
||||||
|
end, {})
|
||||||
|
|||||||
Reference in New Issue
Block a user