vimpostor / vim-prism

A modern vim colorscheme 🎨
GNU General Public License v3.0
6 stars 0 forks source link

Artifacts generated in `vim-airline`, when split-window is used. #2

Closed Ashvith10 closed 1 year ago

Ashvith10 commented 1 year ago

When only a single window is open: Screenshot from 2022-11-17 12-57-40

When NERDTree is bought on the screen: Screenshot from 2022-11-17 12-58-03

When split window is enabled: Screenshot from 2022-11-17 12-58-43

Ashvith10 commented 1 year ago

Update: Switched from gnome-console to gnome-terminal, yet this still persists. Tried on Blackbox too, same issue.

vimpostor commented 1 year ago

Sorry for the late reply, I didn't get a notification...

Unfortunately I can't reproduce your issue, could you maybe share your config so that I can try reproducing it?

Also it is unlikely that this colorscheme is responsible for those artifacts, this colorscheme is only providing the colors, the issue is much more likely to come from your statusline plugin.

Ashvith10 commented 1 year ago

.vimrc

if exists('+termguicolors')
  let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
  let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
  set termguicolors
endif

filetype plugin indent on
syntax on

nmap <F8> :TagbarToggle<CR>
nmap <c-n> :Startify<cr>

set colorcolumn=80
set number
set relativenumber
set expandtab tabstop=4 shiftwidth=4
set smartindent
set completeopt+=menuone
set completeopt+=noselect
set shortmess+=c
set laststatus=2
set noshowmode
set encoding=UTF-8
set omnifunc=ale#completion#OmniFunc

let g:ale_fixers = {
      \'*': ['remove_trailing_lines', 'trim_whitespace'],
      \'ruby': ['rubocop'],
      \'python': ['autoflake', 'autoimport', 'autopep8'],
      \'javascript': ['prettier', 'eslint'],
      \'typescript': ['prettier', 'eslint'],
      \'javascriptreact': ['prettier', 'eslint'],
      \'c': ['remove_trailing_lines', 'trim_whitespace', 'astyle'],
      \'cpp': ['remove_trailing_lines', 'trim_whitespace', 'astyle'],
      \'h': ['remove_trailing_lines', 'trim_whitespace', 'astyle'],
      \'svelte': ['prettier'],
      \'go': ['gofmt'],
      \'proto': ['buf-format'],
      \'html': ['prettier'],
      \'css': ['prettier'],
      \'scss': ['prettier'],
      \'yaml': ['prettier'],
      \'tex': ['latexindent'],
      \'eruby': ['erblint'],
      \'rust': ['rustfmt']
      \}
let s:vim_version = matchstr(execute('version'), 'Vi IMproved \zs\d[^ ]*')
let g:startify_custom_header = [
      \'                       @@@@@                      ',
      \'       @@@@@@@@@@@@@@@@,,,,@@@@@@@@@@@@@@@@@@     ',
      \'     @@@,,@@@@@@@@@@@@,,((%%,,@@@@@@@@@@@,,*@@    ',
      \'     @@,,@@@@@@@@@@@@@%,,(((,@@@@@@@@@@@@@%,@@    ',
      \'      @@@(,@@@@@@@@@@,,(((((,,%@@@@@@@@@%,,,@@    ',
      \'       @@(,@@@@@@@@@@,,((,,,%@@@@@@@@@%,,,,*@@    ',
      \'       @@(,@@@@@@@@@@,,,,%@@@@@@@@@%%,,,,@@@      ',
      \'     @@@@,,@@@@@@@@@@,,%@@@@@@@@@%(,,,,%,@@@@     ',
      \'   @@@,%%/,@@@@@@@@@@@@@@@@@@@%%,,,,(((((%%,@@@   ',
      \'   @@,,///,@@@@@@@@@@@@@@@@@%,,,,((((((((///,,@   ',
      \'   @@@,,,*,@@@@@@@@@@@@@@%%,,,,((((((((//,,,@@@   ',
      \'     @@@@,,@@@@@@@@@@@@%,,,,(((((((((//,,@@@@     ',
      \'       @@(,@@@@@@@@@@%,,,,(((((((((//,,@@@@       ',
      \'       @@(,@@@@@@@%,,,,(((((((((//,,,@@@          ',
      \'       @@(,,@%%%,,,,,((((((((//,,,@@@             ',
      \'       @@(,,,,,,,,,,,//((((//,,,@@@               ',
      \'         @@@@@@@@@@@@,,,//,,,@@@                  ',
      \'                    @@@,,,,@@@                    ',
      \'                       @@@@@                      '
      \]
let g:startify_custom_footer = [
      \"**************************************************",
      \"****************** Version: ".s:vim_version." ******************",
      \"**************************************************",
      \]
let g:ale_completion_enabled = 1
let g:ale_completion_autoimport = 1
let g:ale_set_highlights = 1
let g:ale_fix_on_save = 1
let g:ale_sign_error = '⮾'
let g:ale_sign_warning = ''
highlight clear ALEErrorSign
highlight clear ALEWarningSign
let NERDTreeShowHidden=1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#ale#enabled = 1
let g:airline_powerline_fonts = 1
let g:webdevicons_conceal_nerdtree_brackets=1

call plug#begin()
    Plug 'preservim/nerdtree'
    Plug 'Xuyuanp/nerdtree-git-plugin'
    Plug 'preservim/nerdcommenter'
    Plug 'tpope/vim-fugitive'
    Plug 'airblade/vim-gitgutter'
    Plug 'dense-analysis/ale'
    Plug 'majutsushi/tagbar'
    Plug 'skanehira/preview-markdown.vim'
    Plug 'vim-airline/vim-airline'
    Plug 'othree/html5.vim'
    Plug 'vimsence/vimsence'
    Plug 'pangloss/vim-javascript'
    Plug 'evanleck/vim-svelte'
    Plug 'mattn/emmet-vim'
    Plug 'junegunn/fzf'
    Plug 'junegunn/fzf.vim'
    Plug 'jesseleite/vim-agriculture'
    Plug 'mhinz/vim-startify'
    Plug 'prabirshrestha/asyncomplete.vim'
    Plug 'vimpostor/vim-lumen'
    Plug 'NLKNguyen/papercolor-theme'
    Plug 'gko/vim-coloresque'
    Plug 'ryanoasis/vim-devicons'
    Plug 'cespare/vim-toml'
call plug#end()

colorscheme PaperColor

When my vim was at minimal configuration, I was using this repository, but most of the schemes were broken and a few of them had the same issue as the one I am facing with vim-prism. NLKNguyen/papercolor-theme seems to work properly with vim-lumen on my device.

By any chance, could it be that the themes don't work properly on Vim, but only Neovim?

vimpostor commented 1 year ago

Screenshot_20230126_172129

Well I tried your config both in wezterm and gnome-terminal and can't reproduce any artifacts. Maybe try out a different non-Gnome based terminal emulator or try out a different font, in any case this color scheme is probably not at fault for those artifacts.

By any chance, could it be that the themes don't work properly on Vim, but only Neovim?

No, this colorscheme works just as well in vim as it does in neovim.

Ashvith10 commented 1 year ago

I guess the problem is probably with the powerline-fonts provided by Fedora. I was able to use symbols without a patched font, but now that I've installed a patched font and removed this package, everything works fine.