Hugo Sum's Avatar

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.

16
Followers
7
Following
14
Posts
12.01.2025
Joined
Posts Following

Latest posts by Hugo Sum @hugosum.com

Preview
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.

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-...

18.03.2025 17:16 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
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.

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-...

10.02.2025 20:09 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

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

06.02.2025 15:18 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
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.

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

05.02.2025 15:15 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Is using a package manager like Nix not an option? You can use it on Mint as well and I guess it will be easier than compiling yourself?

30.01.2025 09:50 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
.svelte files โ€ข Docs โ€ข Svelte .svelte files โ€ข Svelte documentation

I thought it is right to write like that, because <script module> would only run once, so it is perfect for importing?
svelte.dev/docs/svelte/...

28.01.2025 08:34 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Not 100% sure if I understand your intention there, are you doing this because those extra properties are exposed to page components through layout's load functions?

27.01.2025 21:37 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Me too!

27.01.2025 14:39 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

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

27.01.2025 12:43 ๐Ÿ‘ 38 ๐Ÿ” 5 ๐Ÿ’ฌ 4 ๐Ÿ“Œ 0
Preview
GitHub - winston0410/dotfiles-2024 Contribute to winston0410/dotfiles-2024 development by creating an account on GitHub.

Well I have it here, but it is lacking some docs at the moment.

github.com/winston0410/...

21.01.2025 07:57 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Pick a Linux distro you like and use it as a daily driver? I would recommend NixOS, and I can share my configuration to help you getting started.

19.01.2025 08:33 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
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.

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

17.01.2025 22:22 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Just improved the code block on my website with `shiki` and `unplugin-icons`, what do you think?

#svelte #shiki #unplugin-icons #webdev

15.01.2025 21:53 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
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.

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

12.01.2025 18:39 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0