Skip to content

bug: Mark updates take too long #115

@tristan-harris

Description

@tristan-harris

Neovim version (nvim -v)

0.10.1

Operating system

Arch Linux

Terminal emulator / GUI

Alacritty

Describe the bug

There is a noticeable delay between moving the cursor off a line and the marks on that line being updated. This can be solved by setting debounce = 0, but should not be necessary given that the default is only 100 milliseconds.

recording.mp4

Expected behavior

The marks on a line update near instantly when the cursor is move elsewhere.

Healthcheck output

render-markdown: require("render-markdown.health").check()

markdown.nvim [version] ~
- OK plugin 5.1.0
- OK neovim >= 0.10

markdown.nvim [configuration] ~
- OK valid

markdown.nvim [nvim-treesitter] ~
- OK installed
- OK markdown: parser installed
- OK markdown: highlight enabled
- OK markdown_inline: parser installed
- OK markdown_inline: highlight enabled

markdown.nvim [executables] ~
- OK none to check

markdown.nvim [conflicts] ~
- OK headlines: not installed
- OK obsidian: not installed

Plugin configuration

return {
    'MeanderingProgrammer/markdown.nvim',
    -- dev = true,
    ft = { 'markdown', 'md' },
    name = 'render-markdown', -- Only needed if you have another plugin named markdown.nvim
    dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' },
    opts = {
        latex = { enabled = false },
        heading = {
            icons = { '󰎤 ', '󰎧 ', '󰎪 ', '󰎭 ', '󰎱 ', '󰎳 ' },
            signs = {},
            backgrounds = { 'DiffAdd', 'DiffChange' }
        },
        code = { style = 'normal' },
        dash = { icon = '' }, -- https://www.w3.org/TR/xml-entity-names/025.html
    }
}

Confirmations

  • I have provided markdown text for any screenshots used in my description & understand that my issue will be closed if I have not

Additional information

Markdown text used in recording.

# Editor Commands

### Read/Write

- `:x`/`:xit`               -> To save and quit (equivalent of `:wq`).
- `:w`/`:write`             -> To write to a specified file.
- `:wqa`/`:wqall`           -> Write all changed buffers then quit.
- `:up`/`:update`           -> Like `:w` but only writes when buffer has been modified.
- `:n`/`:new`               -> Open file in new window in nvim.
- `:e`/`:edit`              -> Open file in nvim. Without arguments it reloads current buffer.
- `:edit!`                -> Discard unsaved changes in the current buffer.
- `:sav`/`:saveas`          -> Save to a specific file.
- `:r`/`:read`              -> Read contents of file into buffer (can be `stdout`).
- `:so`/`:source`           -> Read contents of file as series of commands.

- `:mes`/`:messages`        -> View previous messages.

---

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions