From 2e0813815fa24b611a8125bba6d4f9001da89214 Mon Sep 17 00:00:00 2001 From: utensil Date: Tue, 22 Oct 2024 21:49:31 +0800 Subject: [PATCH] More on auto-complete and Lean --- trees/uts-002F.tree | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/trees/uts-002F.tree b/trees/uts-002F.tree index 8fbc931..e1663a8 100644 --- a/trees/uts-002F.tree +++ b/trees/uts-002F.tree @@ -111,6 +111,7 @@ Here are some useful keys that I like using in NeoVim, with [my LunarVim configu - `+gg` to open lazygit, `q` to quit - on a file, space to stage/unstage, `i` to ignore - `c` to commit, `P` to push, `p` to pull + - `d` to discard - `r` on a commit to reword - in editor, `+gs` to stage the current hunk, `+gr` to revert the current hunk - usually lazygit is good enough, one can also use `:DiffviewOpen` to inspect diff and handle merge conflicts @@ -118,7 +119,11 @@ Here are some useful keys that I like using in NeoVim, with [my LunarVim configu - `+gh` to open the Github Actions split window - `gj` to open the job under cursor, see also [other keys](https://github.com/topaxi/gh-actions.nvim?tab=readme-ov-file#keybindings) - focus and use `:q` to close the split window -- AI Chats +- Auto-complete + - `Tab` to cycle through suggestions from `cmp`, reverse cycle with `Shift+Tab` + - continue to type to select a suggestion, this is better then hitting `Enter` + - `Ctrl+e` to reject suggestions, and `Tab` to take suggestions from Github Copilot +- LLM Chats - Github Copilot - `+aa` to toggle the chat, `+al` to clear chat history - **e**xplain, **r**eview, **R**factor, **t**est, **d**ebug, **f**ix, co**m**mit log, **n**aming etc. @@ -135,6 +140,10 @@ Here are some useful keys that I like using in NeoVim, with [my LunarVim configu - so one simply need to remember to press `q` to quit recording in such scenarios - `qa` starts recording user's inputs, `q` quits recording, `@a` replays the recording, `a` could be any other letter - it could serve as ad hoc key mappings +- Lean + - set local leader to " " (tentative) + - `+i` to toggle Lean Infoview + Recalled by [VSCode Vim ROADMAP](https://github.com/VSCodeVim/Vim/blob/HEAD/ROADMAP.md).