feat(vim): add gh-nvim
This commit is contained in:
parent
7f82d398fd
commit
ea8f79afd7
2 changed files with 45 additions and 0 deletions
|
@ -19,6 +19,11 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gh-nvim = {
|
||||||
|
url = "github:ldelossa/gh.nvim";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-22.11";
|
url = "github:nix-community/home-manager/release-22.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
plugins = buildPlugins [
|
plugins = buildPlugins [
|
||||||
"cmp-conventionalcommits"
|
"cmp-conventionalcommits"
|
||||||
"cmp-git"
|
"cmp-git"
|
||||||
|
"gh-nvim"
|
||||||
"rust-tools-nvim"
|
"rust-tools-nvim"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
|
@ -39,6 +40,7 @@
|
||||||
{plugin = editorconfig-nvim;}
|
{plugin = editorconfig-nvim;}
|
||||||
{plugin = friendly-snippets;}
|
{plugin = friendly-snippets;}
|
||||||
{plugin = fugitive;}
|
{plugin = fugitive;}
|
||||||
|
{plugin = litee-nvim;} # required by gh-nvim
|
||||||
{plugin = lualine-lsp-progress;}
|
{plugin = lualine-lsp-progress;}
|
||||||
{plugin = playground;}
|
{plugin = playground;}
|
||||||
{plugin = rust-vim;}
|
{plugin = rust-vim;}
|
||||||
|
@ -78,6 +80,44 @@
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
plugin = gh-nvim;
|
||||||
|
config = ''
|
||||||
|
lua <<EOF
|
||||||
|
require 'litee.lib'.setup {}
|
||||||
|
require 'litee.gh'.setup {}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
nnoremap <silent> ${leader}qcc :GHCloseCommit<cr>
|
||||||
|
nnoremap <silent> ${leader}qce :GHExpandCommit<cr>
|
||||||
|
nnoremap <silent> ${leader}qct :GHOpenToCommit<cr>
|
||||||
|
nnoremap <silent> ${leader}qcp :GHPopOutCommit<cr>
|
||||||
|
nnoremap <silent> ${leader}qcz :GHCollapseCommit<cr>
|
||||||
|
|
||||||
|
nnoremap <silent> ${leader}qip :GHPreviewIssue<cr>
|
||||||
|
|
||||||
|
nnoremap <silent> ${leader}qrb :GHStartReview<cr>
|
||||||
|
nnoremap <silent> ${leader}qrc :GHCloseReview<cr>
|
||||||
|
nnoremap <silent> ${leader}qrd :GHDeleteReview<cr>
|
||||||
|
nnoremap <silent> ${leader}qre :GHExpandReview<cr>
|
||||||
|
nnoremap <silent> ${leader}qrs :GHSubmitReview<cr>
|
||||||
|
nnoremap <silent> ${leader}qrz :GHCollapseReview<cr>
|
||||||
|
|
||||||
|
nnoremap <silent> ${leader}qpc :GHClosePR<cr>
|
||||||
|
nnoremap <silent> ${leader}qpd :GHPRDetails<cr>
|
||||||
|
nnoremap <silent> ${leader}qpe :GHExpandPR<cr>
|
||||||
|
nnoremap <silent> ${leader}qpo :GHOpenPR<cr>
|
||||||
|
nnoremap <silent> ${leader}qpp :GHPopOutPR<cr>
|
||||||
|
nnoremap <silent> ${leader}qpr :GHRefreshPR<cr>
|
||||||
|
nnoremap <silent> ${leader}qpt :GHOpenToPR<cr>
|
||||||
|
nnoremap <silent> ${leader}qpz :GHCollapsePR<cr>
|
||||||
|
|
||||||
|
nnoremap <silent> ${leader}qtc :GHCreateThread<cr>
|
||||||
|
nnoremap <silent> ${leader}qtn :GHNextThread<cr>
|
||||||
|
nnoremap <silent> ${leader}qt :GHToggleThread<cr>
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
plugin = lualine-nvim;
|
plugin = lualine-nvim;
|
||||||
config = ''
|
config = ''
|
||||||
|
|
Loading…
Reference in a new issue