Enjoy the detours!

log

Day 4 and it got better. Since yesterday evening, it seems like the fever is gone. Which is good, but I still need to rest a lot and feel like I participated in a marathon where I had to fight zombies throwing aliens.

Because I still spend most of my day on the couch, lying there like a dirty stinking bag of clothes, I had time to watch Fast Furious 10. First time, I liked the big bad guy, played by Jason Momoa. The action was Michael Bay action, and the CGI was below Marvel CGI Level. One good thing besides Momoa was the Plot. Having a Badguy taking all away from Dom was fresh to watch. One thing I was wandering, why was Mia without her Children? I had in mind that she had at least one child with Brian. (I did the research and they had 2 children). They met at Doms house for a Family BBQ and not all Family members were there. 🤷


83 of #100DaysToOffload
#log
Thoughts? Discuss...

Still sick as fuck like on Monday. I hoped it will get better in 3 Days. Yesterday morning, I felt great. Took a shower and went outside with the kids. But man, my body tricked me into something. After lunch, I was completely wasted and was unable to stand up just to go to the bathroom.

Luckily, I had some time on the couch and binged the whole first season of X-Men '97. And wow, what a great show. Marvel Animations did something great here. I hope they can deliver the same with Season 2. One of the best Marvel content on Disney+.


82 of #100DaysToOffload
#log
Thoughts? Discuss...

Theoretically, today should be entirely different. The kids should be in child care. My wife and I should work. I should do workout. Which I miss since we started our vacation more than 2 weeks ago.

Instead, the kids and I are sick with the Flu. What a nice way to start into the new year. 😷 Every 2–3 years, I get so sick that I can’t do anything. Besides lying in bed or on the couch. Which I never do. When I lie on the couch, my wife knows that I’m sick. It’s not unusual that I get sick. But for the most time, it’s just an annoying part of the day. I drink some ginger tea and everything is fine. But now, with fever, it’s a complete different level of sickness.

I hope that this will not interrupt my #100DaysToOffload. My plan was also to start with #TheMonthProject, but I don’t see me starting in this week. 😩


81 of #100DaysToOffload
#log
Thoughts? Discuss...

With nvim-treesitter, I have a lot going on in my config. Let's split it up a bit.

The basic treesitter config is mostly the default from their GitHub page but trimmed down. Because I will not have “javascript” to be ignored on install and also don't need to disable highlights. The other thing I use, which was before the playground, to show the treesitter objects under my cursor. Which is helpful for developing colorschemes.

Weiterlesen...

We are back from vacation. After Christmas, we took the train 🚅 to Amsterdam 🌷 for a vacation and to escape the usual New Year's Eve ceremonies.

A child watching the water on a

Weiterlesen...

lualine.nvim is one of the plugins, where I did a lot of configuration and like how it works. It is there and doesn't stand in my way.

I use 5 sections. On the left, the current mode I'm in. (Normal|Insert|Visual|Replace) followed by the file type icon provided by web-devicons. In the center is the filename with the relative path. On the right are diagnostics, to see quickly if there are warnings or errors in the file. The file format is following the diagnostics and I can't remember, why I have them there. Maybe a legacy. 😅 As last, some information, where my cursor in the file is.

On top, I've also added my custom colorscheme to lualine.

It's simple and enough for me. 😎

Config

return {
	"nvim-lualine/lualine.nvim",
	dependencies = {
		"kyazdani42/nvim-web-devicons",
		{ dir = "~/workspace/kong" },
	},
	config = function()
		local theme = require("kong.colors")
		local custom_fname = require("lualine.components.filename"):extend()
		local highlight = require("lualine.highlight")
		local default_status_colors = { saved = theme.g50, modified = theme.special }

		function custom_fname:init(options)
			custom_fname.super.init(self, options)
			self.status_colors = {
				saved = highlight.create_component_highlight_group(
					{ fg = default_status_colors.saved },
					"filename_status_saved",
					self.options
				),
				modified = highlight.create_component_highlight_group(
					{ fg = default_status_colors.modified },
					"filename_status_modified",
					self.options
				),
			}
			if self.options.color == nil then
				self.options.color = ""
			end
		end

		function custom_fname:update_status()
			local data = custom_fname.super.update_status(self)
			data = highlight.component_format_highlight(
				vim.bo.modified and self.status_colors.modified or self.status_colors.saved
			) .. data
			return data
		end

		require("lualine").setup({
			options = {
				theme = "kong",
				section_separators = "",
				component_separators = "",
				globalstatus = true,
			},
			sections = {
				lualine_a = { "mode" },
				lualine_b = {
					{
						"filetype",
						colored = false,
						icon_only = true,
						padding = { left = 2, right = 2 },
					},
				},
				lualine_c = {
					"%=",
					{
						custom_fname,
						file_status = true,
						path = 1,
					},
				},
				lualine_x = { "diff", "diagnostics" },
				lualine_y = {
					{
						"fileformat",
						padding = { left = 2, right = 2 },
					},
				},
				lualine_z = { "progress", "location" },
			},
		})
	end,
}

78 of #100DaysToOffload

#log #neovim

Thoughts? Discuss...

My #8 is one of the oldest plugins I've used. vim-startify is hard to replace. I've tested some replacements written in Lua, but was not satisfied with the results. One of the problems was, that you have to configure a lot or read into the configuration to get the status-quo of vim-startify. And in the end, I was fine to continue use of vim-startify, despite it was not written in Lua. 👌

Config

return {
	"mhinz/vim-startify",
	config = function()
		vim.g.startify_relative_path = 1
		vim.g.startify_change_to_dir = 0
		vim.g.startify_fortune_use_unicode = 1
		vim.g.startify_update_oldfiles = 1
		vim.g.startify_use_env = 1
	end,
}

77 of #100DaysToOffload

#log #neovim

Thoughts? Discuss...

nvim-lint is another null-ls replacement. It helps me by running eslint_d if I enter a file or create a new one. That's it. 😎

Config

return {
	"mfussenegger/nvim-lint",
	event = {
		"BufReadPre",
		"BufNewFile",
	},
	config = function()
		local lint = require("lint")

		lint.linters_by_ft = {
			javascript = { "eslint_d" },
			typescript = { "eslint_d" },
			javascriptreact = { "eslint_d" },
			typescriptreact = { "eslint_d" },
		}

		lint.linters.eslint_d.args = {
			"--no-warn-ignored", -- https://github.com/mfussenegger/nvim-lint/issues/462
			"--format",
			"json",
			"--stdin",
			"--stdin-filename",
			function()
				return vim.api.nvim_buf_get_name(0)
			end,
		}

		local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })

		vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
			group = lint_augroup,
			callback = function()
				lint.try_lint()
			end,
		})
	end,
}

76 of #100DaysToOffload

#log #neovim

Thoughts? Discuss...

I wish you all a happy new year and a good start.

Let’s make some progress in 2025 and learn from our mistakes in 2024. 💪


75 of #100DaysToOffload

#log

Thoughts? Discuss...

glow.nvim is a neat little helper if you write a lot of Markdown. For example, CHANGELOG.md, README.md files inside your project or a static blog. You can just render a preview in your Neovim instance. :)

Config

return {
	"ellisonleao/glow.nvim",
	keys = {
		{ "<leader>p", ":Glow<cr>" },
	},
	config = function()
		require("glow").setup({
			install_path = "/opt/homebrew/bin/glow",
		})
	end,
}

74 of #100DaysToOffload

#log #neovim

Thoughts? Discuss...