Advertisement · 728 × 90

Posts by Hugo Sum

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

1 year ago 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-...

1 year ago 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

1 year ago 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

1 year ago 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?

1 year ago 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/...

1 year ago 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?

1 year ago 0 0 1 0

Me too!

1 year ago 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

1 year ago 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/...

1 year ago 0 0 0 0
Advertisement

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.

1 year ago 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

1 year ago 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

1 year ago 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

1 year ago 2 0 0 0