Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual mode is blocking out the highlighted text #356

Open
znre opened this issue Oct 4, 2024 · 2 comments
Open

Visual mode is blocking out the highlighted text #356

znre opened this issue Oct 4, 2024 · 2 comments

Comments

@znre
Copy link

znre commented Oct 4, 2024

Hey, I'm using nord theme for xfce terminal as well as for vim, when I'm using visual mode, the highlighted text are blocked out.

image

I was wondering if you have any ideas on how to fix this? Thank you!

This is my entire .vimrc if it helps:

let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
  silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif

call plug#begin()
Plug 'itchyny/lightline.vim'
Plug 'arcticicestudio/nord-vim'
Plug 'tpope/vim-fugitive'
Plug 'tmux-plugins/vim-tmux'
call plug#end()
 
 
"+--- itchyny/lightline.vim ---+
let g:lightline = {
      \ 'colorscheme': 'nord',
      \ 'active': {
      \   'left': [
      \     [ 'mode', 'paste' ],
      \     [ 'fugitive', 'filename' ]
      \   ]
      \ },
      \ 'component_function': {
      \   'fugitive': 'LightlineFugitive',
      \   'readonly': 'LightlineReadonly',
      \   'modified': 'LightlineModified',
      \   'filename': 'LightlineFilename'
      \ },
      \ 'separator': {
      \   'left': '',
      \   'right': ''
      \ },
      \ 'subseparator': {
      \   'left': '',
      \   'right': ''
      \ }
    \ }
 
function! LightlineModified()
  if &filetype == "help"
    return ""
  elseif &modified
    return "+"
  elseif &modifiable
    return ""
  else
    return ""
  endif
endfunction
 
function! LightlineReadonly()
  if &filetype == "help"
    return ""
  elseif &readonly
    return ""
  else
    return ""
  endif
endfunction
 
function! LightlineFugitive()
  if exists("*FugitiveHead")
    let branch = FugitiveHead()
    return branch !=# '' ? ' '.branch : ''
  endif
  return ''
endfunction
 
function! LightlineFilename()
  return ('' != LightlineReadonly() ? LightlineReadonly() . ' ' : '') .
       \ ('' != expand('%:t') ? expand('%:t') : '[No Name]') .
       \ ('' != LightlineModified() ? ' ' . LightlineModified() : '')
endfunction
 
set number relativenumber
set laststatus=2
let g:lightline.tabline = {
    \ 'colorscheme': 'nord',
            \ 'left': [ [ 'tabs' ] ],
            \ 'right': [ [ 'close'] ] }
 
colorscheme nord
@znre
Copy link
Author

znre commented Oct 5, 2024

Fixed with this PR:
#350

image

@janospapp
Copy link

I also ran into the same issue. Until the PR gets merged, I was able to fix it with a workaround, by setting the Visual mode's foreground color manually after loading the theme (the fix does the same through the nord plugin).

# .vimrc

colorscheme nord
highlight Visual ctermfg=NONE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants