Coder Social home page Coder Social logo

tigion / nvim-asciidoc-preview Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 3.0 159 KB

A simple AsciiDoc preview while editing AsciiDoc documents in Neovim

License: MIT License

Lua 54.29% JavaScript 40.07% HTML 1.73% Shell 3.90%
asciidoc asciidoctor lua neovim neovim-plugin node-js

nvim-asciidoc-preview's People

Contributors

edeneast avatar tigion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nvim-asciidoc-preview's Issues

Bug: Created Diagram (mermaid) does not update

Issue:

If you have a diagram, in my case mermaid, that you'd like to preview, it only renders it once. Any updates are not reflected in the rendered graph.

What i tried:

I tried changing the browser, changing the server converter from js to cmd and other similar things, like disabling the browser cache. None worked.

System:

  • MacOS with M1 / ARM
  • Neovim 0.10
  • Node 22.2.0
  • Asciidoctor 2.0.23 [https://asciidoctor.org] Runtime Environment (ruby 3.3.2 (2024-05-30 revision e5a195edf6) [arm64-darwin22]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
  • Browser: LibreWolf, Waterfox, Firefox, Chrome latest versions

Steps to reproduce

Use an example document like the following, preview it, then make changes to the graph. You will see that the text version updates, but not the rendered graph.

= Diagram Mermaid Sample

.Mermaid graph
[source,zsh]
----
graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[Car]
D --> E
D --> E
----

No AsciiDoc file to preview

Hi,
just recently I started to get this message in browser when I start the preview:

๐Ÿ˜ด Server is waiting ... currently is no AsciiDoc file to preview!

Tried to remove and install the plug again, but result is the same.

Any hint on why this is happening?

Thanks

Cannot get the plugin to work (Despite positive checkhealth) NixOS 24.05 (flake included to test)

:checkhealth asciidoc-preview

==============================================================================
asciidoc-preview: require("asciidoc-preview.health").check()

nvim-asciidoc-preview ~

  • OK macOS (Linux) supported
  • OK node installed
  • OK npm installed
  • OK curl installed

Asciidoctor (optional) ~

  • The following warnings or errors can be ignored
    if Asciidoctor.js (converter = 'js') is used.
  • WARNING asciidoctor not installed
  • OK ruby installed
  • WARNING asciidoctor gem not installed
  • WARNING asciidoctor-diagram gem not installed

(I cannot find the file ~/.local/state/nvim/nvim-asciidoc-preview-server.log)

image

Flake for tests:
REQUIRED:

  • nix

With flakes enabled
nix run github:jirafey/nvim-flake

if you have git cloned the repo -> cd to the repo and nix run

Legacy (may seem like it stalls)
nix-shell -p '(import (builtins.fetchTarball "https://github.com/jirafey/nvim-flake/archive/master.tar.gz")).packages.${builtins.currentSystem}.default' --run nvim

If you need the link: https://github.com/jirafey/nvim-flake
Nvim version:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.