Skip to content

BUG: modes.nvim conflicts with cursorline #1848

@mhkarimi1383

Description

@mhkarimi1383

Did you check docs and existing issues?

  • I have read all the docs.
  • I have searched the existing issues.
  • I have searched the existing discussions.

Neovim Version (nvim -v)

NVIM v0.11.4

Operating System / Version

NixOS

Describe the Bug

Hi
I have a problem with my neotree setup is that Selected Item (only in filesystem) is same as other items

But it is OK in Git Status and Symbols

It is hard to use it specially while using fuzzy search feature

I have also tried disabling cappuccin integration (Also tried changing colorscheme to default) but nothing changed

Screenshots, Traceback

Image

As you can see my cursor in on 3:1

Image

This is from another tab

Steps to Reproduce

  1. install neotree with provided configurations

Expected Behavior

Highlight it correctly

Your Configuration

require("neo-tree").setup({
    sources = {
      'filesystem',
      'buffers',
      'git_status',
      'document_symbols',
    },
    source_selector = {
      truncation_character = "",
      winbar = true,
      statusline = true,
      show_scrolled_off_parent_node = true,
      sources = {
        { source = 'filesystem' },
        { source = 'buffers' },
        { source = 'git_status' },
        { source = 'document_symbols' },
      },
    },
    hijack_netrw_behavior = 'open_default',
    window = {
      position = "right",
    },
    enable_opened_markers = true,
    default_component_configs = {
      name = {
        highlight_opened_files = true,
      }
    },
    use_libuv_file_watcher = true,
    filesystem = {
      follow_current_file = {
        enabled = true
      },
      filtered_items = {
        visible = true,
      },
    },
  })
  catppuccin.setup {
    flavour = 'mocha', -- latte, frappe, macchiato, mocha
    background = {     -- :h background
      light = 'latte',
      dark = 'mocha',
    },
    float = {
      transparent = true,
      solid = true,
    },
    transparent_background = true, -- disables setting the background color.
    show_end_of_buffer = false,    -- shows the '~' characters after the end of buffers
    term_colors = false,           -- sets terminal colors (e.g. `g:terminal_color_0`)
    dim_inactive = {
      enabled = false,             -- dims the background color of inactive window
      shade = 'dark',
      percentage = 0.15,           -- percentage of the shade to apply to the inactive window
    },
    no_italic = false,             -- Force no italic
    no_bold = false,               -- Force no bold
    no_underline = false,          -- Force no underline
    styles = {                     -- Handles the styles of general hi groups (see `:h highlight-args`):
      comments = { 'italic' },     -- Change the style of comments
      conditionals = { 'italic' },
      loops = { 'italic' },
      functions = { 'italic' },
      keywords = { 'italic' },
      strings = {},
      variables = {},
      numbers = {},
      booleans = { 'italic' },
      properties = {},
      types = { 'italic' },
      operators = {},
      -- miscs = {}, -- Uncomment to turn off hard-coded styles
    },
    color_overrides = {},
    custom_highlights = function(colors)
      return {
        NeoTreeCursorLine = { bg = colors.surface1, fg = colors.none },
        NeoTreePreview = { bg = colors.surface1, fg = colors.none },
      }
    end,
    default_integrations = true,
    integrations = {
      gitsigns = true,
      nvimtree = true,
      dap = true,
      treesitter = true,
      notify = true,
      mason = true,
      fzf = true,
      neotree = true,
      cmp = true,
      dap_ui = true,
      rainbow_delimiters = true,
      mini = {
        enabled = true,
        indentscope_color = '',
      },
      indent_blankline = {
        enabled = true,
        scope_color = 'lavender',
        colored_indent_levels = true,
      },
      native_lsp = {
        enabled = true,
        virtual_text = {
          errors = { "italic" },
          hints = { "italic" },
          warnings = { "italic" },
          information = { "italic" },
          ok = { "italic" },
        },
        underlines = {
          errors = { "underline" },
          hints = { "underline" },
          warnings = { "underline" },
          information = { "underline" },
          ok = { "underline" },
        },
        inlay_hints = {
          background = true,
        },
      },
      telescope = {
        enabled = true,
        -- style = "nvchad"
      },
      which_key = true,
      dropbar = {
        enabled = true,
        color_mode = true,
      },
      copilot_vim = true,
      -- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
    },
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions