loctvl842 / monokai-pro.nvim

Monokai Pro theme for Neovim written in Lua, with multiple filters: Pro, Classic, Machine, Octagon, Ristretto, Spectrum
MIT License
441 stars 44 forks source link

When used with Indent-Blankline.nvim the cursor sometimes disappears #13

Closed Wa1tee closed 1 year ago

Wa1tee commented 1 year ago

When the cursor is between indent lines it turns invisible. Using the default config

Wa1tee commented 1 year ago

Here the cursor is visible visible

When moved to the adjacent position either left or right, the cursor disappears not_visible

loctvl842 commented 1 year ago

I guess the problem might be your terminal. I'm using kitty terminal and It's seem normal to me test_fix13 The picture above is your neovim_config

Wa1tee commented 1 year ago

Tried at work using xfce terminal and the same issue persists: Cursor disappears when it's between the indent lines. It's visible if it's on an indent line or over text but a whitespace between indent lines it disappears. Seems like Kitty terminal may passively fix whatever the issue is

loctvl842 commented 1 year ago

Recommend you use kitty, I feel it is much faster. You can also take a look at Monokai Pro colorscheme for that terminal as well.

Tried at work using xfce terminal and the same issue persists: Cursor disappears when it's between the indent lines. It's visible if it's on an indent line or over text but a whitespace between indent lines it disappears. Seems like Kitty terminal may passively fix whatever the issue is About this, I installed xfce terminal, I understand the problem. The cursor didn't disappear. In block shape, it have the same color with the text under it and the indentline have a very light black; therefore, you can't see your cursor. You can try to set this in your neovim.

vim.opt.guicursor = "n-v-c-sm:block-Cursor,i-ci-ve:ver25-Cursor,r-cr-o:hor20-Cursor",

combine with override function if you see the Cursor 's color is too light.

Wa1tee commented 1 year ago

Thanks, that option fixed it for me!

I'll check kitty out too

Tyler-Barham commented 1 year ago

You could add the following to your config after setting up this plugin

vim.cmd "highlight! link IndentBlanklineChar      Whitespace"
vim.cmd "highlight! link IndentBlanklineSpaceChar Whitespace"

It returns the indent-blankline char/spacechar highlighting to their defaults rather than using the definitions from lua/monokai-pro/theme/plugins/indent_blankline.lua.

loctvl842 commented 1 year ago

highlight! link IndentBlanklineChar Whitespace

My colorscheme support override:

        override = function(c)
          return {
            IndentBlanklineChar = { link = "Whitespace" },
          }
        end,

But I wonder why you need to rewrite this?

Tyler-Barham commented 1 year ago

But I wonder why you need to rewrite this?

Have updated my config to use override instead, thanks :smiley:

*Needs to read docs more carefully