morhetz / gruvbox

Retro groove color scheme for Vim
13.45k stars 1.1k forks source link

Syntax highlight does not work for html php or css #373

Closed sc-laurence closed 3 years ago

sc-laurence commented 3 years ago

This is how php and html file looks, css also not working.

Screen Shot 2020-12-16 at 6 13 05 PM Screen Shot 2020-12-16 at 6 14 10 PM

I am running neovim v0.4.4 on mac-os 11.1 (iterm2 3.4.3), This is my init.vim


set ruler " show the line and column number of the cursor.
set exrc
set textwidth=0 " Hard-wrap long lines as you type them.
set modeline 
set guicursor=
set relativenumber
set nohlsearch
set hidden
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.config/nvim/undodir
set undofile
set incsearch
set scrolloff=8
set showmode
set completeopt=menuone,noinsert,noselect
set signcolumn=yes
set nocompatible
set cursorline
" Give more space for displaying messages.
set cmdheight=2

" Having longer updatetime (default is 4000 ms) leads to noticeable
" delays and poor user experience
set updatetime=50

" Don't pass messages to |ins-completion-menu|.
set shortmess+=c

set colorcolumn=100

call plug#begin(stdpath("data").'/plugged') 
Plug 'morhetz/gruvbox'
Plug 'sheerun/vim-polyglot'
Plug 'preservim/nerdtree'
Plug 'preservim/nerdcommenter'
Plug 'frazrepo/vim-rainbow'
Plug 'jiangmiao/auto-pairs'
Plug 'mileszs/ack.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'itchyny/lightline.vim'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'mattn/emmet-vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'junegunn/fzf'
call plug#end()

syntax on
set termguicolors
filetype plugin indent on
" ===========================
" Gruvbox colorsheme settings
" ===========================
set background=dark
let g:gruvbox_italic=0
let g:gruvbox_contrast_dark='hard'
colorscheme gruvbox

let g:rainbow_active = 1

" ===========================
" Vue syntax highlight
" ===========================
autocmd BufNewFile,BufRead *.vue set ft=vue
let html_no_rendering=1

" key mapping
nmap mo :NERDTreeToggle<CR>

Is there anything I am doing wrong?

sc-laurence commented 3 years ago

let g:rainbow_active = 1 seems to be the culprit, will slow this