Skip to content

Cursorline in mini.hues is not highlighted properly in few lines. #1256

@231tr0n

Description

@231tr0n

Contributing guidelines

Module(s)

mini.hues

Description

cursorline in mini.hues is not highlighted properly in few lines in mini.hues.
In some places it looks normal like below
image
While in others it does not show properly
image

Neovim version

nightly latest

Steps to reproduce

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
	spec = {
		-- add any other plugins here
		"nvim-treesitter/nvim-treesitter",
		"echasnovski/mini.hues",
	},
})

require("nvim-treesitter.configs").setup({
	ensure_installed = { "svelte", "bash" },
	highlight = {
		enable = true,
	},
})

vim.cmd("set cursorline")
vim.cmd.colorscheme("default")
vim.cmd.colorscheme("randomhue")

With the above config open the file below with name *.svelte

<script>
  import Accordion from '$lib/components/page/Accordion.svelte';

  export let name = '';
  export let url = '';
  export let badges = [];
  export let description = '';
</script>

{#if name && description}
  <Accordion {name} {url}>
    <div class="center">
      {#each badges as badge}
        <span class="badge">{badge}</span>
      {/each}
      <div class="center">
        {description}
      </div>
    </div>
  </Accordion>
{/if}

<style>
  div.center {
    margin-top: 1em;
  }
</style>

Expected behavior

Cursorline should look uniform across all lines.

Actual behavior

Cursorline is not uniform across all lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions