Hugo Sum
hugosum.com
Hugo Sum
@hugosum.com
A Hongkonger living in the UK. A software developer who loves learning and teaching.

My blog: https://hugosum.com

P.S. I use NixOS btw.
Just want to share with you a trick to start nvim with minimal or no configuration, so you can use it as a last resort when the plugins you use or your config is giving annoying errors.

#nvim

hugosum.com/blog/how-to-...
How to start Neovim with minimal configuration — Hugo Sum
In this post I will show you how to start Neovim with minimal configuration, so you can fix your Neovim's configuration with it when it is generating some annoying errors for you.
hugosum.com
March 18, 2025 at 5:17 PM
Once again I have started customizing Neovim, and I want to share with you how do I bring types to my Lua configuration.

#neovim

hugosum.com/blog/adding-...
Adding types to your Neovim configuration — Hugo Sum
In this post I will show you how to add types and its related LSP diagnostics to your Neovim configuration, so you can have a better experience customizing it.
hugosum.com
February 10, 2025 at 8:09 PM
So I wasted 6 hours trying to fix "Request Header or Cookie Too Large" in `ingress-nginx`, and only found out that the internal error page is actually served by a container that is running `nginx`, and I have been putting my fix in the wrong place. Fun time.

#devops #webdev
February 6, 2025 at 3:18 PM
Just want to share how to conditionally add values to a list or map in a functional language like Nix, as I found it very useful when writing configurations or derivations.

hugosum.com/blog/conditi...

#nix
Conditionally add values into list or map in Nix — Hugo Sum
In this post I want to show you how to conditionally add values into list or map in Nix.
hugosum.com
February 5, 2025 at 3:15 PM
Simple win for the day, starting from SvelteKit 2.16.0, you can simplify type annotation for props of page and layout component with `PageProps` and `LayoutProps`.

More on that: hugosum.com/blog/end-to-...

#svelte #sveltekit
January 27, 2025 at 12:43 PM
Today I spent some time analyzing and optimized the bundle of my SvelteKit project, and documented how I remove duplicate packages from my project.
hugosum.com/blog/analyze...

#vite #rollup #webdev
Analyze and optimize your Vite bundle — Hugo Sum
In this post I will show you how to analyze and optimize your Vite bundle by removing duplicate code and packages.
hugosum.com
January 17, 2025 at 10:22 PM
Just improved the code block on my website with `shiki` and `unplugin-icons`, what do you think?

#svelte #shiki #unplugin-icons #webdev
January 15, 2025 at 9:53 PM
I have created sitemap for a few different SvelteKit projects in the past. I came across `super-sitemap` last week, and I am really impressed by its design. I have a really good time using it.

hugosum.com/blog/creatin...

#svelte #sveltekit
Creating sitemap for your SvelteKit project with minimal effort — Hugo Sum
In this post I want to share my experience on building sitemap in SvelteKit and introduce library that provides the best developer experience in my opinion to you.
hugosum.com
January 12, 2025 at 6:39 PM