benlubas / molten-nvim

A neovim plugin for interactively running code with the jupyter kernel. Fork of magma-nvim with improvements in image rendering, performance, and more
GNU General Public License v3.0
571 stars 30 forks source link

[Bug] <Blinking cursor> #253

Open TomasRojoBiran opened 20 hours ago

TomasRojoBiran commented 20 hours ago

Hello, i dont want to lose your time, this is a pretty simple bug and i prefer to just tell you what is happen, i use the block cursor in insert mode in neovim, i have been testing different things, options, but i cannot get the answer right. I use Alacritty as terminal with zsh. I use Arch (btw), and neovim is the latest version, python the same.

The problem is that the cursor blinks when i have the output open, only when the output of a cell is open it starts blinking, if i close the output it stops.

The behavior that i expect is obivously that it shouldn be blinking, and i checked the alacritty configs, set blinking to 0, and played with a lot of different options from molten and nothing, could you help me with this please? i am using image.nvim and ueberzug as backend this is my molten config:

return { -- Molten.nvim plugin for Jupyter integration "benlubas/molten-nvim", run = ":UpdateRemotePlugins", dependencies = { -- Image.nvim for image rendering { "3rd/image.nvim", config = function() -- Image.nvim setup with ueberzugpp backend for Alacritty require('image').setup({ backend = "ueberzug", -- Use ueberzugpp as the backend integrations = { markdown = { enabled = true, download_remote_images = true, }, neorg = { enabled = true, }, }, -- Adjust image size to make it medium-sized max_height_window_percentage = 70, -- Use 70% of the window height max_width_window_percentage = 70, -- Use 70% of the window width

      -- Fix flickering and unwanted re-rendering
      only_render_image_at_cursor = true,  -- Only render image when the cursor is on it

      -- Ensure images are cleared when windows overlap
      window_overlap_clear_enabled = true, 
    })
  end,
}

}, config = function() -- Molten-nvim setup vim.g.molten_image_provider = "image.nvim" -- Set image provider vim.g.molten_auto_open_output = true -- Automatically open outputs end, }

benlubas commented 2 hours ago

I see this behavior too. It hasn't always been like that. I'm not sure what changed. You could bisect way back in time to find the commit that introduced it if you want a place to start.

TomasRojoBiran commented 1 hour ago

Oh, ok so you also have the same behavior right now, your cursor blinks too?