mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Add octo
This commit is contained in:
parent
5e52503c71
commit
31514a0b0c
4 changed files with 57 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ in {
|
|||
mods.desktop.productivity.enable = false;
|
||||
mods.zen.enable = true;
|
||||
mods.obsidian.enable = true;
|
||||
mods.octo.enable = true;
|
||||
mods.theme.slideshow = true;
|
||||
|
||||
home.packages = with pkgs;
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ in {
|
|||
mods.desktop.development.enable = true;
|
||||
mods.desktop.productivity.enable = false;
|
||||
mods.zen.enable = true;
|
||||
mods.octo.enable = true;
|
||||
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ in {
|
|||
imports = [
|
||||
inputs.nvf.homeManagerModules.default
|
||||
./obsidian.nix
|
||||
./octo.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf config.mods.nvim.enable {
|
||||
|
|
|
|||
54
modules/home/terminal/nvim/octo.nix
Normal file
54
modules/home/terminal/nvim/octo.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options.mods.octo.enable =
|
||||
lib.mkEnableOption "enables octo";
|
||||
|
||||
config = lib.mkIf config.mods.octo.enable {
|
||||
programs.nvf.settings.vim.lazy.plugins."octo.nvim" = {
|
||||
package = pkgs.vimPlugins.octo-nvim;
|
||||
setupModule = "octo";
|
||||
setupOpts = {
|
||||
picker = "telescope";
|
||||
enable_builtin = true;
|
||||
};
|
||||
cmd = ["Octo"];
|
||||
keys = [
|
||||
{
|
||||
key = "<leader>oi";
|
||||
mode = "n";
|
||||
action = "<CMD>Octo issue list<CR>";
|
||||
desc = "List GitHub Issues";
|
||||
}
|
||||
{
|
||||
key = "<leader>op";
|
||||
mode = "n";
|
||||
action = "<CMD>Octo pr list<CR>";
|
||||
desc = "List GitHub PullRequests";
|
||||
}
|
||||
{
|
||||
key = "<leader>od";
|
||||
mode = "n";
|
||||
action = "<CMD>Octo discussion list<CR>";
|
||||
desc = "List GitHub Discussions";
|
||||
}
|
||||
{
|
||||
key = "<leader>on";
|
||||
mode = "n";
|
||||
action = "<CMD>Octo notification list<CR>";
|
||||
desc = "List GitHub Notifications";
|
||||
}
|
||||
{
|
||||
key = "<leader>os";
|
||||
mode = "n";
|
||||
action = "function() require('octo.utils').create_base_search_command { include_current_repo = true } end";
|
||||
lua = true;
|
||||
desc = "Search GitHub";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue