Skip to content

[cmd] use hiccup-cli with neovim #19

@humorless

Description

@humorless

Installation and configuration

  1. Download the hiccup-cli binary from here.
  2. Move hiccup-cli to /usr/local/bin/hiccup-cli
  3. Because the hiccup-cli does not support reading from stdin, I need to configure it with a bash script html2hiccup.
#!/usr/bin/env bash

middle="$(mktemp)"
while IFS= read -r line; do
    echo "$line" >> "$middle"
done

hiccup-cli --html-file "$middle"

Move the script html2hiccup to /usr/local/bin/html2hiccup

Screenshots

vim reference with external command

before after

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions