onivim / oni

Oni: Modern Modal Editing - powered by Neovim
https://www.onivim.io
MIT License
11.35k stars 300 forks source link

wpgtk.vim colour scheme does not work in Oni #2696

Open lachlanshoesmith opened 5 years ago

lachlanshoesmith commented 5 years ago

Oni Version: 0.3.9 Neovim Version (Linux only): 0.3.1 Operating System: Manjaro Linux (kernel 4.14.90-1-MANJARO)

Issue: The wpgtk.vim colour scheme (similar to wal.vim) is not working properly with Oni. Instead, it displays default colours (not to be confused with the Nord theme).

Expected behavior:

I would expect Oni to somewhat resemble what the theme looks like with standard nvim or vim in my terminal (Alacritty):

A screenshot of the expected behaviour.

Actual behavior:

A screenshot of the actual behaviour.

I thought I would mention that you may have seen the Dracula theme being imported in my ~/.vimrc. Yes, this theme does work correctly in Oni for me.

Steps to reproduce:

  1. Download and install the aforementioned wpgtk.vim theme; I used vim-plug to do this.
  2. Set the theme within your ~/.vimrc (or nvim config) with colorscheme wpgtk.
  3. Load init.vim with Oni.
  4. In Oni config, set "ui.colorscheme" to "wpgtk".
oni-bot[bot] commented 5 years ago

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

badosu commented 5 years ago

Hello @lachlantula, please take a look at https://github.com/onivim/oni/wiki/How-To:-Minimal-Oni-Configuration, in particular the ui.colorscheme section.

If that does not fix your issue, please reopen.

lachlanshoesmith commented 5 years ago

Unfortunately, this did not resolve my issue (as you can see, I'm also having some troubles with a ligature version of Operator Mono, but that's an issue for another day after I've done more testing).

2018-12-29-170438_1920x1056_scrot

My init.vim reads as follows:

" Set Oni settings.

set nocompatible              " be iMproved, required
filetype off                  " required

set number
set noswapfile
set smartcase

" Enable GUI mouse behavior
set mouse=a

" If using Oni's externalized statusline, hide vim's native statusline, 
set noshowmode
set noruler
set laststatus=0
set noshowcmd

" Load ~/.vimrc.

set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc

My ~/.vimrc:

"   /\/|   __       _                       
"  |/\/   / /      (_)                      
"        / /__   __ _  _ __ ___   _ __  ___ 
"       / / \ \ / /| || '_ ` _ \ | '__|/ __|
"      / / _ \ V / | || | | | | || |  | (__ 
"     /_/ (_) \_/  |_||_| |_| |_||_|   \___|
"
"     ~/.vimrc by Lachlan Shoesmith (lachlantula).
"     Last updated: 27/12/18.

syntax on

" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')

" Declare the list of plugins.
Plug 'posva/vim-vue'
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug 'mattn/emmet-vim'
Plug 'rstacruz/vim-closer'
Plug 'scrooloose/nerdtree'
Plug 'itchyny/lightline.vim'
Plug 'junegunn/goyo.vim'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'deviantfero/wpgtk.vim'

" List ends here. Plugins become visible to Vim after this call.
call plug#end()

" Set theme.

colorscheme wpgtk 

" Make Vim read .md files as Markdown (.markdown) files.

au BufNewFile,BufFilePre,BufRead *.md set

" Change the cursor to my personal terminal one.
set guicursor=a:ver20-blinkon1

" Open a file tree with Ctrl+T.

map <C-T> :NERDTreeToggle<CR>

" Display relative line numbers

set number relativenumber

" Indentation

set expandtab
set shiftwidth=2
set autoindent
set smartindent
set tabstop=2
set softtabstop=2

(also, I can't reopen my own issue closed by another... right?)

AriTheElk commented 4 years ago

I found another theme that refuses to work in oni: https://github.com/arzg/vim-colors-xcode

colorscheme works perfect in standalone vim, but loads blank theme (same theme that loads when you have a misspelled/invalid colorscheme in the settings). The more themes we find that are broken, the better chance we can find a common link that could be breaking it.