3rd/diagram.nvim

All images hidden entering insert mode, only diagram restored returning to normal mode

cpb opened this issue · 2 comments

cpb commented

Here's a short clip demonstrating the issue I experienced.

  1. A markdown document including:
    ![lorem picsum](https://picsum.photos/500/500)
    
    ```mermaid
    graph LR
      A --> B
    ```
    
  2. Enter insert mode, observe all images disappear
  3. Exit insert mode, observe only diagrams reappear

The video replaces the A with B bet the result is the same.

diagram-nvim-issue.mov
3rd commented

Hey, thank you for the issue, it should be fixed now!
Non-diagram images won't be cleared by default in insert mode, but you can enable that with image.nvim's clear_in_insert_mode option on the integrations you use.

cpb commented

Thank you, 6bbc2b0 fixes it for me!