2022-09-30 17:30:39 +00:00
|
|
|
-- Make it easier to run black
|
|
|
|
vim.api.nvim_create_user_command('Black', 'call Black()', {})
|
|
|
|
|
2023-01-20 04:37:06 +00:00
|
|
|
-- Insert PDB breakpoint
|
|
|
|
vim.api.nvim_create_user_command('PDB', 'norm obreakpoint() # michael', {})
|
|
|
|
vim.api.nvim_create_user_command('BP', 'norm obreakpoint() # michael', {})
|
2022-09-30 17:30:39 +00:00
|
|
|
|
2022-11-04 21:35:35 +00:00
|
|
|
local function gitblame_toggle_summary()
|
2023-01-10 18:21:09 +00:00
|
|
|
local normal = '<author> • <date>'
|
|
|
|
local with_summary = '<summary> • <author> • <date>'
|
|
|
|
if vim.g.gitblame_message_template == normal then
|
|
|
|
vim.g.gitblame_message_template = with_summary
|
|
|
|
else
|
|
|
|
vim.g.gitblame_message_template = normal
|
|
|
|
end
|
2022-11-04 21:35:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
vim.api.nvim_create_user_command('GitBlameToggleSummary', gitblame_toggle_summary, {})
|