Elektrine lite

← Feed

@ayhon@mas.to

Post #1490244

2026-04-06 10:51 UTC

TIL about `nvim`'s `:TOhtml`. https://neovim.io/doc/user/plugins/#package-tohtml > Converts the buffer shown in the current window to HTML, opens the generated HTML in a new split window, and saves its contents to {file}. If {file} is not given, a temporary file (created by |tempname()|) is used. I think it comes bundled with `nvim` by default, and it preserves themes and syntactic highlighting. Really cool feature!

Replies (1)

  • @ayhon@mas.to 2026-04-06 10:59

    It doesn't seem to preserve the font though, which means that ligatures are unlikely to be preserved, but still, pretty cool!

    Open ##2030944