diff --git a/lua/commands.lua b/lua/commands.lua index e69de29..1dc2a0c 100644 --- a/lua/commands.lua +++ b/lua/commands.lua @@ -0,0 +1,18 @@ +-- Insert PDB breakpoint +vim.api.nvim_create_user_command('PDB', 'norm obreakpoint() # michael', {}) +vim.api.nvim_create_user_command('BP', 'norm obreakpoint() # michael', {}) + +-- Copy Relative File Path to Clipboard +vim.api.nvim_create_user_command('C', 'let @+ = expand("%:~:.")', {}) + +local function gitblame_toggle_summary() + local normal = '' + local with_summary = '' + if vim.g.gitblame_message_template == normal then + vim.g.gitblame_message_template = with_summary + else + vim.g.gitblame_message_template = normal + end +end + +vim.api.nvim_create_user_command('GitBlameToggleSummary', gitblame_toggle_summary, {}) diff --git a/lua/configs/formatter.lua b/lua/configs/formatter.lua index 2ef5dbf..489aceb 100644 --- a/lua/configs/formatter.lua +++ b/lua/configs/formatter.lua @@ -15,7 +15,8 @@ local function config() -- TODO: ruff format, depending on the project python = { fmt_python.isort, - fmt_python.black, + fmt_python.ruff, + -- fmt_python.black, }, -- sudo npm i -g fixjson json = { fmt_json.fixjson },