LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.37k stars 1.17k forks source link

Can Not see the cursor when using default color scheme #50

Open meicale opened 2 years ago

meicale commented 2 years ago

When I open the nvim I can not see my cursor when using the default color scheme or dark color scheme. Can I use other color scheme such as gruvbox? How should I fix the cursor problem.

nishu-murmu commented 2 years ago

Can you show some image for better understanding? Try using different theme as well

meicale commented 2 years ago

I prefer dark schemes and all the schemes have this problem. Just like the ping shows, actually the cursor is on line 3 column 0. I just wonder how to use the gruvbox? image

nishu-murmu commented 2 years ago

It might be your terminal problem Try resetting it.

dvchoudh commented 2 years ago

You are able to install whatever colorscheme you want. You basically just put the plugin into the plugins.lua file. And obviously setting the colorscheme after installing it.

meicale commented 2 years ago

image

It works fine in terminal. I tried all the colorscheme in the Mobaxterm terminal setting, it cause some changes but I can not see the cursor. Thank you all the same.

I use powerline10k as terminal theme, it works ok with other nvim and spacevim. In spacevim, if i use the darkmode instead of the basic mode, I ran into the same problem.

meicale commented 2 years ago

You are able to install whatever colorscheme you want. You basically just put the plugin into the plugins.lua file. And obviously setting the colorscheme after installing it.

I tried other colorscheme such as gruvbox, but I still cannot see the cursor. I guess this may caused by other pluggins. When I use the 04-colorsecheme branch of this repo, I get my cursor back in nvim.

meicale commented 2 years ago

Anyway, after several retries and reinstalls, my cursor in vim coming back. Thank you all guys. I have not figured out how this thing had happened. I will update when I reproduce this problem. Thx!

meicale commented 2 years ago

I may figure out the problem. I cannot turn on the" termguicolor = true " in option.lua. This may not surport by mobaxterm. Any one have the similar problem please update me. Thx.

nishu-murmu commented 2 years ago

Try just using basic windows terminal (mobaxterm excluded), or some other windows terminal emulator like kitty, xshell, etc. termguicolor is necessary or else you might have some color errors.

meicale commented 2 years ago

I also can use putty. Others are not installed on the server. So it gets difficult to deal with.