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