Dead-simple plugin to update your GitHub profile status from Vim.
This depends on plenary.nvim to make HTTP request, please install it if you haven't.
Using vim-plug:
Plug 'duydang2311/gh-status.nvim'
-
Generate a token with
user
scope fully enabled. -
Pass the credentials to
setup
function.
local gh_status = require'gh-status'
gh_status.setup({
username = '<username>',
token = '<access_token>'
})
As for now, you have to manually invoke the function to update your status.
You can, e.g. either map changeUserStatus
to a key to set your status,
or combine it with autocmd.
local gh_status = require'gh-status'
vim.keymap.set('n', '<leader>gh', function()
gh_status.changeUserStatus('editing ' .. vim.fn.expand('%:t'))
end, { noremap = true, silent = false })