brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: :checkhealth in Neovim shows what is wrong with your setup

Linux and shell
~/tips/tip-neovim-checkhealth

:checkhealth

Runs Neovim's self-checks and reports missing tools, broken plugins and provider problems.

A Neovim plugin that doesn’t work often has a boring cause: a missing program, a wrong path or a provider that isn’t set up. Neovim has a built-in report for exactly that.

:checkhealth

With no arguments, it runs all the health checks it can find and opens the report in a buffer. Each section lists what is fine, what is a warning and what is an error, often with a hint about how to fix it. Core checks look at things like the clipboard and language providers, and plugins can add their own.

You can ask for specific checks by name:

:checkhealth vim.lsp vim.treesitter

That runs only those two. A pattern like :checkhealth vim* selects a group, as shown in the Neovim docs. It’s the quickest place to look when something isn’t working, and including its output makes a bug report much more useful to a plugin author.

The report buffer has the filetype checkhealth, so you can search it like any other buffer.

Caveat: a plugin only shows up if it ships a health check, and not all of them do. A clean report therefore doesn’t prove everything is fine, it only means that the checks that exist passed. Also, warnings for things you don’t use, like a Ruby provider, are normal, and you can ignore them.

Further reading: Neovim docs: health

More Linux and shell tips zoxide query -ls project eval "$(fzf --bash)" comm --total a.txt b.txt diff -r -x .git -x '*.log' one two printf '%s\n' a b c d e f | xargs -n1 -P3 --process-slot-var=SLOT sh -c 'echo "slot $SLOT got $0"; sleep 0.2' All Linux and shell tips (178) All topics

Link