This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Using Wal theme, doesn't seem to use pywal theme colours Neovim 0.4.4 #35
Comments
I am also experiencing this same issue |
Could you post your init.vim? |
My init.vim: scriptencoding utf8
" Arch defaults
runtime! archlinux.vim
" Start configuration for Vundle and its plugins.
set nocompatible
filetype off
call plug#begin('~/.local/share/nvim/plugged')
Plug 'airblade/vim-gitgutter'
Plug 'davidhalter/jedi-vim'
Plug 'dense-analysis/ale'
Plug 'easymotion/vim-easymotion'
Plug 'gmarik/Vundle.vim'
Plug 'kien/ctrlp.vim'
Plug 'lepture/vim-jinja'
Plug 'majutsushi/tagbar'
Plug 'mileszs/ack.vim'
Plug 'morhetz/gruvbox'
Plug 'nvie/vim-flake8'
Plug 'posva/vim-vue'
Plug 'rakr/vim-one'
Plug 'scrooloose/nerdtree'
Plug 'tmhedberg/SimpylFold'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tyru/open-browser-github.vim'
Plug 'tyru/open-browser.vim'
Plug 'vim-scripts/indentpython.vim'
Plug 'vimwiki/vimwiki'
" a vim colorscheme to go with pywal
Plug 'dylanaraps/wal.vim'
" i3 config file syntax highlight.
Plug 'mboughaba/i3config.vim'
" A better JSON syntax highlight
Plug 'elzr/vim-json'
" Highlight extra whitespaces in red.
Plug 'ntpeters/vim-better-whitespace'
" Sweet to focus reading.
Plug 'junegunn/goyo.vim'
" Limelight let you switch to presentation mode.
Plug 'junegunn/limelight.vim'
" Peek into registers with @ and \"
Plug 'junegunn/vim-peekaboo'
" the below requires cmake to be installed
Plug 'ycm-core/YouCompleteMe', { 'do': './install.py --clangd-completer' }
" syntax
call plug#end()
filetype plugin indent on
"-----------------------------------------------------------------------------
" leader config: comma is better than space.
let mapleader=","
"-----------------------------------------------------------------------------
" Indentation.
set encoding=utf-8
set softtabstop=2
set tabstop=2
set shiftwidth=2
set expandtab
set textwidth=0 wrapmargin=0
set colorcolumn=79
au FileType python,c
\ setlocal tabstop=4 |
\ setlocal softtabstop=4 |
\ setlocal shiftwidth=4 |
\ setlocal expandtab | "convert tabs to spaces
\ setlocal autoindent |
\ setlocal fileformat=unix
"-----------------------------------------------------------------------------
" Cursor configuration
highlight Cursor guifg=white guibg=black
highlight iCursor guifg=white guibg=black
set guicursor=n-v-c:block-Cursor
set guicursor+=i:ver100-iCursor
set guicursor+=n-v-c:blinkon0
set guicursor+=i:blinkwait10
"-----------------------------------------------------------------------------
" Moving blocks identation, so multiple hits on "<" do what it is intended.
vmap < <gv
vmap > >gv
"-----------------------------------------------------------------------------
" Folding code via space bar
set foldmethod=indent
set foldlevel=99
nnoremap <space> za
"-----------------------------------------------------------------------------
" Spell check
nnoremap <F6> :setlocal spell! spelllang=en_gb<CR>
"-----------------------------------------------------------------------------
" Using jedi for python files only instead of YCM. Definition command is better
let g:jedi#goto_definitions_command = "<F12>"
let g:jedi#use_tabs_not_buffers = 0
let g:jedi#popup_on_dot = 0 "Remove completion as it is very slow.
let g:jedi#show_call_signatures = "0" "call signatures can be slow too.
"-----------------------------------------------------------------------------
" YCM (you complete me) configuration.
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_autoclose_preview_window_after_completion = 1
" remove YCM for python as it is slow in a large codebase.
let g:ycm_filetype_blacklist = {'python': 1, 'py': 1}
" Max number of completion suggestions
let g:ycm_max_num_candidates = 5
nnoremap <F10> :tab split \| YcmCompleter GoToDeclaration<CR>
nnoremap <F12> :tab split \| YcmCompleter GoToDefinition<CR>
nnoremap <F9> :tab split \| YcmCompleter GoToReferences<CR>
let g:ycm_server_keep_logfiles = 1
let g:ycm_server_log_level = 'debug'
"-----------------------------------------------------------------------------
" Highlight word "self" in python files.
autocmd BufReadPost *.py syn match pythonBoolean "\(\W\|^\)\@<=self\(\.\)\@="
"-----------------------------------------------------------------------------
" w!! to write with sudo even if not opened with sudo
cmap w!! w !sudo tee >/dev/null %
"-----------------------------------------------------------------------------
" Colour scheme
" set termguicolors
" set background=light
let g:gruvbox_contrast_light = 'hard'
let g:gruvbox_contrast_dark = 'soft'
colorscheme wal
"-----------------------------------------------------------------------------
" nerdtree (file browsing) configuration
let NERDTreeIgnore=['\.pyc$', '\~$', '__pycache__']
map <C-t> :NERDTreeToggle<CR>
let g:NERDTreeMapOpenSplit = 'h'
let g:NERDTreeMapOpenVSplit = 'v'
"-----------------------------------------------------------------------------
" Buffers movimentation
nnoremap <silent> [b :bprevious<CR>
nnoremap <silent> ]b :bnext<CR>
nnoremap <silent> [B :bfirst<CR>
nnoremap <silent> ]B :blast<CR>
"-----------------------------------------------------------------------------
" line configuration
set nu
set relativenumber
"-----------------------------------------------------------------------------
" Search configuration
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" nnoremap <C-m> :CtrlPMRU<CR>
let g:ctrlp_use_caching = 0
let g:ctrlp_prompt_mappings = {
\ 'PrtInsert("c")': ['<MiddleMouse>', '<insert>', '<c-v>'] }
let g:ctrlp_custom_ignore = 'node_modules'
let g:ctrlp_max_files=0
" highligh search
:set hlsearch
let g:ackhighlight=1
" make vim's search pattern case insensitive.
set ignorecase
" complements ignorecase. Ignores case only if search is all lowercase
set smartcase
"Ack configs"
cnoreabbrev ack Ack!
let g:ackpreview=0
let g:ackprg = 'rg -S --vimgrep --no-heading'
let g:ack_mappings = {
\ 'v': '<C-W><CR><C-W>L<C-W>p<C-W>J<C-W>p',
\ 'gv': '<C-W><CR><C-W>L<C-W>p<C-W>J' }
"-----------------------------------------------------------------------------
" Splits navigation
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" always split below or right
set splitbelow
set splitright
"-----------------------------------------------------------------------------
" Enable mouse.
set mouse=a
"-----------------------------------------------------------------------------
" I want to use backspace rather than only "d"
set backspace=2
"-----------------------------------------------------------------------------
" Pontuation lint
" set showbreak=↪\
" set listchars=tab:\|_,eol:↲,nbsp:␣,trail:•,extends:⟩,precedes:⟨
set listchars=tab:\|_,nbsp:␣,trail:•,extends:⟩,precedes:⟨
set list
"-----------------------------------------------------------------------------
" Closing windows hotkeys
" nnoremap <C-w> :q<CR>
nnoremap <Leader>q :q<CR>
"-----------------------------------------------------------------------------
" Json formatting hotkeys
nnoremap <Leader>json :%!python -m json.tool<CR>
" xml formatting hotkeys
nnoremap <Leader>xml :%!python3 -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())"<CR>
" Resizing
map + :vertical resize +2<CR>
map - :vertical resize -2<CR>
map _ :vertical resize 85<CR>
"-----------------------------------------------------------------------------
" tabs
noremap <leader>t :tabnew<CR>
"-----------------------------------------------------------------------------
" allow copy to clipboard
set clipboard+=unnamedplus
"-----------------------------------------------------------------------------
" git commands
set updatetime=100
noremap <Leader>gc :GitGutterUndoHunk<CR>
noremap <Leader>gn :GitGutterNextHunk<CR>
noremap <Leader>gp :GitGutterPrevHunk<CR>
noremap <leader>gb :Gblame<CR>
noremap <leader>gd :Gdiff<CR>
"-----------------------------------------------------------------------------
" jinja config
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm,*.jinja,*.jinja2 set ft=jinja
"-----------------------------------------------------------------------------
" tagbar
noremap <F8> :TagbarToggle<CR>
"-----------------------------------------------------------------------------
" debug
au BufNewFile,BufRead *.py noremap <F1> :normal oimport ipdb; ipdb.set_trace()<ESC>
au BufNewFile,BufRead *.py noremap <F2> :g/^.*import ipdb; ipdb.set_trace().*/d<CR>
"-----------------------------------------------------------------------------
" easy motion
nmap <Leader><leader>f <Plug>(easymotion-overwin-f)
nmap <Leader><leader>F <Plug>(easymotion-overwin-F)
nmap <Leader><leader>w <Plug>(easymotion-overwin-w)
nmap <C-F> <Plug>(easymotion-overwin-w)
nmap <Leader><leader>W <Plug>(easymotion-overwin-W)
nmap <Leader><leader>. <Plug>(easymotion-repeat)
"-----------------------------------------------------------------------------
" goyo (reader)
noremap <leader>go :Goyo<CR>
"-----------------------------------------------------------------------------
"
" limelight (reader)
noremap <leader>l :Limelight!!0.9<CR>
"-----------------------------------------------------------------------------
" wiki
highlight VimwikiHeader1 guifg=#fabd2f
highlight VimwikiHeader2 guifg=#b8bb26
highlight VimwikiHeader3 guifg=#8ec07c
let g:vimwiki_list = [{'path': '~/workspace/vimwiki/'}]
"-----------------------------------------------------------------------------
" Ale linter, which works for C as well using clang.
let b:ale_linters = {
\'javascript': ['eslint'],
\'python': ['flake8'],
\'c': ['cc', 'clangtidy']
\}
let g:ale_c_cc_options = '-std=c17 -Wall'
let g:ale_linters_explicit = 1 "Ale will only run on the list above.
let g:ale_lint_delay = 500 "milliseconds delay after typing trigger
"----------------------------------------------------------------------------- |
Does it work in terminal right after setting a new wallpaper like so? cd ~/wallpapers
wal -c
wal -i some_wallpaper.png
nvim +color\ wal And if so, are you loading the scheme in terminal - do you have something similar to the following line in your RC file (e.g. ([ -f ~/.cache/wal/sequences ] && cat ~/.cache/wal/sequences &) If it still doesn't work:
nvim -u ~/tmp/vimrc +PlugClean! +PlugInstall! +close +"color wal" +"e ~/.vimrc" Minimal config (add path for set nocompatible
set notermguicolors
set background=dark
call plug#begin()
Plug 'dylanaraps/wal.vim'
call plug#end() |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Firstly I want to be clear that I've removed set termguicolors, so that unfortunately isn't it.
When I use the wal colour scheme after installing the plugin it seems the colour scheme isn't anything close to the theme colours. I have the following in my ~/.cache/wal/colors file:
#111010
#6E4C32
#725444
#8C5A32
#A06C50
#BF7955
#AF8771
#e1beac
#9d8578
#6E4C32
#725444
#8C5A32
#A06C50
#BF7955
#AF8771
#e1beac
Yet I end up with a white screen with black text, yellow line numbers and teal highlights...
I'm happy to help troubleshoot.
The text was updated successfully, but these errors were encountered: