nvim-navbuddy icon indicating copy to clipboard operation
nvim-navbuddy copied to clipboard

Cursor color turns black

Open zbyju opened this issue 1 year ago • 6 comments

Once I open Navbuddy (:Navbuddy) my cursor turns black for the remainder of using my terminal (even outside neovim).

  1. Cursor is normal:
  2. Open navbuddy
  3. Cursor is black
  4. Even outside neovim

I'm using Windows 10 + WSL2 and it happens both in Windows Terminal and Wezterm. I changed my font which didn't have an effect.

My config is using packer:

use {
  "SmiteshP/nvim-navbuddy",
  requires = {
    "neovim/nvim-lspconfig",
    "SmiteshP/nvim-navic",
    "MunifTanjim/nui.nvim",
    "numToStr/Comment.nvim",        -- Optional
    "nvim-telescope/telescope.nvim" -- Optional
  }
}

Mason lsp:

on_attach = function(client, bufnr)
  navic.attach(client, bufnr)
end

Navbuddy setup:

local navbuddy = require("nvim-navbuddy")
local actions = require("nvim-navbuddy.actions")
navbuddy.setup {
  lsp = {
    auto_attach = true,
  },
}

BTW: I'm quite new to neovim, but I've never seen such issue

zbyju avatar Feb 02 '24 14:02 zbyju

Also: this doesn't happen with any other plugin - Telescope, Trouble, etc. all work fine; only when going out of Navbuddy does the cursor change.

zbyju avatar Feb 02 '24 14:02 zbyju

Same here, also with WSL2+WT

lljbash avatar Feb 05 '24 06:02 lljbash

Even outside neovim!? Is this specific to WSL only?

SmiteshP avatar Feb 10 '24 08:02 SmiteshP

Yeah I was also able to replicate this issue on WSL2, seems like setting guicursor with highlight group that has "blend" option set is messing things up somehow. But since this persists even outside neovim this might be a WSL releated bug 🤔 or maybe neovim bug, no idea though

SmiteshP avatar Feb 10 '24 08:02 SmiteshP

Maybe we file a bug in neovim repo itself ?

SmiteshP avatar Feb 10 '24 08:02 SmiteshP

Same here, but only on WT + wsl2.

ktkimit avatar May 10 '24 16:05 ktkimit