Sekai 🌐 🗺

Sekai (世界) is the kanji for “the world”. That’s a great word because of the scale that it designates.

Safer Git Force Pushing in Neovim

Accidentally triggering a destructive command is one of the worst feelings during daily development. Keybindings that alter remote branch history—like git push --force—should require deliberate intent so they aren’t hit by a stray keypress.

Inspired by a commit in thallada’s neovim-config, shifting keymaps for destructive operations from lowercase to uppercase (<Leader>gf<Leader>gF) adds a crucial layer of friction.


The Problem with Lowercase Shortcuts for Destructive Actions

When mapping Git commands inside NeoVim, it is common to group them under a <Leader>g prefix:

[Read More]
NeoVim  git 

Enhancing Debugging Ergonomics With Custom Dap Keymaps

Streamlining execution flow during an active debugging session requires fast, intuitive keyboard shortcuts. In commit ca95bed6 to my nvim-config repository, I added four custom keybindings to make evaluating expressions, managing conditional breakpoints, and terminating debug sessions much cleaner.

Here is a breakdown of the new additions to lua/plugins/dap.lua.


1. Floating Expression Evaluation (<Leader>de)

Inspecting variables on the fly without switching focus into the DAP UI panels keeps your focus on the code structure:

[Read More]

Configuring LSP and Symbol Renaming in Neovim

Refactoring code across multiple files or large codebases can quickly become error-prone when done via manual find-and-replace. Modern Language Server Protocol (LSP) integrations solve this by providing AST-aware symbol renaming across your entire workspace.

In this post, I will walk through my newly updated nvim-lspconfig configuration using lazy.nvim, mason.nvim, and native LSP keymaps like <Leader>rn for symbol renaming.

You can view my complete, live Neovim configuration on GitHub:

👉 VincentTam/nvim-config: lua/plugins/lspconfig.lua


Core Plugin Architecture

My LSP stack uses a clean, lightweight combination of three plugins:

[Read More]
NeoVim 

My Neovim DAP Setup for C Debugging

Setting up the Debug Adapter Protocol (DAP) in Neovim transforms C and C++ workflows by integrating full-featured debugging—breakpoints, call stacks, REPL execution, and variable evaluation—directly into your modal editing experience.

Rather than maintaining static code snippets in this post, you can inspect my active setup directly on GitHub:

👉 VincentTam/nvim-config: lua/plugins/dap.lua


Core Architecture

The setup relies on three primary components managed through lazy.nvim:


Ergonomic Navigation: Shift + Arrow Shortcuts

While traditional DAP keymaps often use multi-key leader sequences (e.g., <Leader>dn), navigating execution during a active step-by-step session is much faster with single-key modifications.

[Read More]
NeoVim  DAP  GDB  C 

Optimisation d'une VM GCP et domptage de Neovim

Aujourd’hui, j’ai passé ma configuration de développement sur une VM Google Cloud Platform (GCP). Entre les contraintes de ressources de la machine et le peaufinage de mon environnement Neovim pour mon projet Rust, voici ce que j’ai appris.

1. Transfert de fichiers avec rsync

Pour uploader mes dossiers de projet vers la VM, j’ai utilisé rsync. C’est bien plus efficace que scp car il ne transfère que les modifications.

rsync -avzLP --exclude='.git' \
  ~/.local/share/typst/packages/preview/auto-mando/ \
  user@$(gcloud compute instances describe typst-bot-vm \
    --format='get(networkInterfaces[0].accessConfigs[0].natIP)' \
    --zone='us-east1-d'):~/

Le « combo doré » :

[Read More]
GCP  Linux  Neovim  Rust  DevOps 

Rust Project Structure for rust-canto

Lessons from vibe coding

Background

I created my first crate rust-canto even though I didn’t know Rust, so that I can bring automatic Cantonese word segmentation and romanizations into Typst.

This is a great idea. Moving from a complex xtask workspace to a streamlined build.rs and build.sh workflow is a common evolution for Rust projects, especially when targeting WebAssembly.

Five lessons learnt from chat bot

1. Avoid the “Crates.io Path Dependency” Trap

  • The Problem: Using a Workspace with a local helper crate.

    [Read More]

Typst Package for Jyutcitzi

Background

As a native Cantonese speaker, I found it inconvenient to repeat all the time when I have to teach others how to speak my language. I acquired Jyutping (粵拼) a couple of years ago. It’s a popular phonetic system for the Cantonese language. However, some of my fellow countrymen aren’t fond of this romanization scheme.

A soft “introduction” to “Introduction to Jyutcitzi”

Recently, I’ve heard of another phonetic system called Jyutcit (粵切). It’s basically a “cutting sound method” (切音法). Each syllable is “initial + final”. To compose a sound, we take two syllables, from which we keep

[Read More]

Imprimante HP Deskjet 4100 sous Linux

Introduction

J’ai récupéré une imprimante HP DeskJet Plus 4122. Je m’en rarement servais car je pensais à tort que HP ne marchait que sous Windows. J’aime tellement Linux que je me connectais pas souvent à Windows, où l’appli HP Smart est bloquée de temps en temps.

Cet après-midi, après une petite recherche, je me suis rendu compte qu’il y avait une pilote HP Linux Imaging and Printing (HPLIP) pour Linux. J’ai décidé de l’essayer sur mon système Lubuntu 24.04.

[Read More]
HP  Linux  Printer 

Choisir La Stabilite en Christ

Hier, lors de la prédication, j’ai reçu un message très important. Nous avons toujours le choix : celui de refuser d’être blessés, affaiblis ou angoissés par les erreurs de nos parents, par les pensées négatives ou par les relations toxiques.

Une sœur de mon église m’a partagé que la stabilité émotionnelle n’est pas quelque chose que l’on construit seulement par soi-même, mais un don de Dieu. En effet, pour ne pas être détournés par ces pensées destructrices, nous devons nous rappeler que nous sommes d’abord enfants de Dieu. Il est notre Père, et Son amour est inébranlable et inséparable, aussi longtemps que nous plaçons notre foi en Lui.

[Read More]

Plus grande chute du plus grand royaume

Lors du culte la semaine dernière, la pasteur a prêché sur l’histoire du roi Salomon, qui avait demandé l’intelligence pour exercer la justice, qui l’a reçue. Son royaume était le plus riche, le plus puissant au monde, et aucun pays ne peut le surpasser, ni ceux d’avant, ni ceux d’après.

En voyant un verset du livre des Proverbes pertinent, la foule a réjoui. Cependant, je me suis mis en doute au sujet de la chute de son royaume après sa mort. Salomon a-t-il reçu ce qu’il avait demandé ? Une chaîne de raisons est sortie de ma tête :

[Read More]