Fix opt-in keymap install messaging (#61)
Some checks are pending
test / startup (macos-latest) (push) Waiting to run
test / startup (ubuntu-latest) (push) Waiting to run
test / shellcheck (push) Waiting to run
test / docs (push) Waiting to run

This commit is contained in:
m1ngsama 2026-05-13 18:28:31 +08:00 committed by GitHub
parent 2514d2e803
commit 8e6dcc6e97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 15 deletions

View file

@ -131,7 +131,7 @@ Esc exit insert mode ,? cheat sheet
### Windows ### Windows
`<C-w>hjkl` navigate | `,z` maximize | `,h` `,l` buffers | `,bd` close buffer | `,=` `,` resize | `,tv` `,th` terminal | `Esc Esc` exit terminal `<C-w>hjkl` navigate | `,z` maximize | `,h` `,l` buffers | `,bd` close buffer | `,=` `,` resize | `,tv` `,th` terminal
### Markdown ### Markdown

View file

@ -1075,14 +1075,18 @@ fi
# ============================================================================ # ============================================================================
step "LSP language servers" step "LSP language servers"
info "vim-lsp installs language servers on demand — no action needed here." if [[ $CONFIG_PROFILE == "minimal" ]]; then
info "" skip "LSP disabled by minimal profile"
info "To install a server: open a source file in Vim and run:" else
info " :LspInstallServer" info "vim-lsp installs language servers on demand — no action needed here."
info "" info ""
info "Supported: Python, JS/TS, Go, Rust, C/C++, Shell, HTML, CSS, JSON, YAML, Markdown, SQL" info "To install a server: open a source file in Vim and run:"
info "" info " :LspInstallServer"
info "For Markdown LSP (marksman), the installer already handled it above." info ""
info "Supported: Python, JS/TS, Go, Rust, C/C++, Shell, HTML, CSS, JSON, YAML, Markdown, SQL"
info ""
info "For Markdown LSP (marksman), the installer already handled it above."
fi
# ============================================================================ # ============================================================================
# Summary # Summary
@ -1122,13 +1126,18 @@ echo -e " ${CYAN}vim .${NC} Open dashboard in current directory"
echo -e " ${CYAN}vim myfile${NC} Edit a specific file" echo -e " ${CYAN}vim myfile${NC} Edit a specific file"
echo "" echo ""
echo -e "${BOLD} First steps inside Vim${NC}" echo -e "${BOLD} First steps inside Vim${NC}"
echo -e " ${CYAN}Esc${NC} or ${CYAN}jk${NC} Exit insert mode → back to Normal" echo -e " ${CYAN}Esc${NC} Exit insert mode → back to Normal"
echo -e " ${CYAN}:q!${NC} + Enter Emergency quit without saving" echo -e " ${CYAN}:q!${NC} + Enter Emergency quit without saving"
echo -e " ${CYAN},x${NC} Save and quit" echo -e " ${CYAN},x${NC} Save and quit"
echo -e " ${CYAN},?${NC} Open cheat sheet" echo -e " ${CYAN},?${NC} Open cheat sheet"
echo -e " ${CYAN}:LspInstallServer${NC} Install LSP for current filetype" if [[ $CONFIG_PROFILE != "minimal" ]]; then
echo "" echo -e " ${CYAN}:LspInstallServer${NC} Install LSP for current filetype"
echo -e "${YELLOW}[!]${NC} Ctrl+s is mapped to save in Vim." fi
echo " If it freezes your terminal, add this to ~/.bashrc or ~/.zshrc:" if [[ -f "$LOCAL_CONFIG" ]] && \
echo -e " ${CYAN}stty -ixon${NC}" grep -Eq '^[[:space:]]*let[[:space:]]+g:chopsticks_enable_ctrl_s_save[[:space:]]*=[[:space:]]*1([[:space:]]|$)' "$LOCAL_CONFIG"; then
echo ""
echo -e "${YELLOW}[!]${NC} Ctrl+s is mapped to save in Vim."
echo " If it freezes your terminal, add this to ~/.bashrc or ~/.zshrc:"
echo -e " ${CYAN}stty -ixon${NC}"
fi
echo "" echo ""