Skip to content

Commit

Permalink
feat(keymap): add icon and resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Oct 9, 2024
1 parent 726be31 commit fcdda96
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 25 deletions.
45 changes: 26 additions & 19 deletions nvim.nix/config/ai.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,85 +13,92 @@

{
__unkeyed-1 = "<leader>ca";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>AvanteAsk<cr>";
__unkeyed-2 = "<cmd>AvanteAsk<cr>";
icon = icons.space.right "robotFace";
desc = "Open AI Ask";
}

{
__unkeyed-1 = "<leader>cc";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>AvanteChat<cr>";
__unkeyed-2 = "<cmd>AvanteChat<cr>";
icon = icons.space.right "robotFace";
desc = "Open AI Chat";
}

{
__unkeyed-1 = "<leader>ce";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>AvanteEdit<cr>";
__unkeyed-2 = "<cmd>AvanteEdit<cr>";
icon = icons.space.right "robotFace";
desc = "Edit with instruction";
}

{
__unkeyed-1 = "<leader>cg";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun grammar_correction<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun grammar_correction<cr>";
icon = icons.space.right "robotFace";
desc = "Grammar Correction";
}

{
__unkeyed-1 = "<leader>ct";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun translate<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun translate<cr>";
icon = icons.space.right "robotFace";
desc = "Translate";
}

{
__unkeyed-1 = "<leader>ck";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun keywords<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun keywords<cr>";
icon = icons.space.right "robotFace";
desc = "Keywords";
}

{
__unkeyed-1 = "<leader>cd";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun docstring<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun docstring<cr>";
icon = icons.space.right "robotFace";
desc = "Docstring";
}

{
__unkeyed-1 = "<leader>ca";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun add_tests<cr>";
desc = "Add Tests";
}

{
__unkeyed-1 = "<leader>co";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun optimize_code<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun optimize_code<cr>";
icon = icons.space.right "robotFace";
desc = "Optimize Code";
}

{
__unkeyed-1 = "<leader>cs";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun summarize<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun summarize<cr>";
icon = icons.space.right "robotFace";
desc = "Summarize";
}

{
__unkeyed-1 = "<leader>cf";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun fix_bugs<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun fix_bugs<cr>";
icon = icons.space.right "robotFace";
desc = "Fix Bugs";
}

{
__unkeyed-1 = "<leader>cx";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun explain_code<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun explain_code<cr>";
icon = icons.space.right "robotFace";
desc = "Explain Code";
}

{
__unkeyed-1 = "<leader>cr";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun roxygen_edit<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun roxygen_edit<cr>";
icon = icons.space.right "robotFace";
desc = "Roxygen Edit";
}

{
__unkeyed-1 = "<leader>cl";
__unkeyed-2 = icons.withIcon "robotFace" "<cmd>ChatGPTRun code_readability_analysis<cr>";
__unkeyed-2 = "<cmd>ChatGPTRun code_readability_analysis<cr>";
icon = icons.space.right "robotFace";
desc = "Code Readability Analysis";
}
];
Expand Down
17 changes: 11 additions & 6 deletions nvim.nix/config/writing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,31 +89,36 @@
{
__unkeyed-1 = "mp";
__unkeyed-2 = "<cmd>MarkdownPreview<cr>";
desc = icons.withIcon "git" "Preview Markdown";
icon = icons.space.right "markdown";
desc = "Preview Markdown";
}

{
__unkeyed-1 = "<leader>tv";
__unkeyed-2 = ":lua Toggle_venn()<CR>";
desc = icons.withIcon "git" "Toggle Venn";
__unkeyed-2 = "<cmd>lua Toggle_venn()<CR>";
icon = icons.space.right "wand";
desc = "Toggle Venn";
}

{
__unkeyed-1 = "<leader>oj";
__unkeyed-2 = "<cmd>Neorg journal today<cr>";
desc = icons.withIcon "git" "Journal Today";
icon = icons.space.right "journal";
desc = "Journal Today";
}

{
__unkeyed-1 = "<leader>oh";
__unkeyed-2 = "<cmd>Neorg workspace home<cr>";
desc = icons.withIcon "git" "Open Neorg Home";
icon = icons.space.right "house";
desc = "Open Neorg Home";
}

{
__unkeyed-1 = "<leader>zm";
__unkeyed-2 = "<cmd>ZenMode<cr>";
desc = icons.withIcon "git" "Focus like a Japanese Philosopher 🧘";
icon = icons.space.right "philosopher";
desc = "Focus like a Japanese Philosopher";
}

];
Expand Down

0 comments on commit fcdda96

Please sign in to comment.