add a way to copy pytest <fn> -N <cw> to clipboard
This commit is contained in:
parent
79a2d63604
commit
a16b913719
@ -16,3 +16,12 @@ local function gitblame_toggle_summary()
|
||||
end
|
||||
|
||||
vim.api.nvim_create_user_command('GitBlameToggleSummary', gitblame_toggle_summary, {})
|
||||
|
||||
-- Copy pytest <filename> -N <current word> to Clipboard
|
||||
local function copy_pytest_command()
|
||||
local fp = vim.fn.expand('%:~:.')
|
||||
local word = vim.fn.expand('<cword>')
|
||||
vim.fn.setreg('+', 'pytest ' .. fp .. ' -N ' .. word)
|
||||
end
|
||||
|
||||
vim.api.nvim_create_user_command('P', copy_pytest_command, {})
|
||||
|
Loading…
Reference in New Issue
Block a user