- Move lua filter to separate file - Use a subshell to write `nixvim-header.5` - Use bash function to avoid repetition