Generating Snippets with LuaSnip in Neovim

TL;DR When you have many variations of the same snippet, one option is to generate those with Lua code. The complete example is at the end. I’ve recently moved to LuaSnip as my snippets plugin for Neovim. When I first started, I sticked to the simplest features of LuaSnip, in particular the SnipMate-like syntax for snippets. But I have now started to explore the more distinctive features of LuaSnip, like Lua-defined snippets....

July 31, 2022 · 4 min

From UltiSnips to LuaSnip

TL;DR LuaSnip is fast and doesn’t have to be complicated. Give it a try! Even if that article shows how LuaSnip shines, I have great respect for the work that has gone into UltiSnips. It is still a reliable, reasonably fast plugin given the constraint it operates in (in particular, Vim compatibility requires a fair amount of Vimscript). I’ve written this article shortly after trying LuaSnip and I’m still very much evaluating it....

May 15, 2022 · 7 min

You “Own” 16 Milion+ IPv4 Addresses!

TLDR For the foreseeable future, you can likely use 127.0.0.0/8 freely (or at least 127.0.0.0/16). Introducing 127.0.0.0/8, the Loopback Range Visualization of the 127.0.0.0/8 rangeFrom cidr.xyz by Yuval Adam If you have ever done web development or otherwise set up a local server, you have most likely used the IP address 127.0.0.1 to communicate with a local server. Often, localhost is even internally translated to that address. But what if you want to run another server on the same computer?...

March 5, 2022 · 4 min

Configuration Management

TL;DR Chezmoi follows a declarative approach to configuration management. Even if you already use a configuration-management system, you should check out how it compares! A Custom Configuration Makes You Feel at Home Your git aliases, shell setup, keyboard shortcuts and even your favorite fonts are tweaked for your own needs and tastes. It’s part of what makes your computer, your computer. All this configuration evolves over years and is slowly refined over time....

September 3, 2021 · 4 min

How I Got Started with NeoVim’s Lua Configuration

Four months ago I was still using SpaceVim when I stumbled upon a blog post on how to configure NeoVim with Lua. I then started to create my own configuration. In this post I’ll share the learnings acquired in the process. I hope you will find this useful to create your own configuration! Why create your own Vim config from scratch? Vim has been my daily driver for about ten years....

July 18, 2021 · 9 min