Nothing change after installing the plugin
Closed this issue · 3 comments
I am using vim-plug to install. Syntax highlighting does change before and after installed.
call plug#begin()
Plug 'vim-python/python-syntax'
call plug#end()Here is the result. You can see like the property wrapper, the boolean are not highlighted. I am using the onedark.vim as colorscheme as well.
And worth to mention, other file syntax plugin seems not working as well. Wondering any possible reason.
I have check the vim.log by vim website.py --startuptime vim.log and things are loaded.
Here is the full .vimrc
set nocompatible
call plug#begin()
" The default plugin directory will be as follows:
" - Vim (Linux/macOS): '~/.vim/plugged'
" - Vim (Windows): '~/vimfiles/plugged'
" - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
" You can specify a custom plugin directory by passing it as the argument
" - e.g. `call plug#begin('~/.vim/plugged')`
" - Avoid using standard Vim directory names like 'plugin'
" Make sure you use single quotes
Plug 'https://github.com/joshdick/onedark.vim.git'
Plug 'itchyny/lightline.vim'
" Post install (yarn install | npm install)
" Then load plugin only for editing supported files
Plug 'prettier/vim-prettier', {
\ 'do': 'yarn install --frozen-lockfile --production',
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] }
" Syntax highlighting
Plug 'pangloss/vim-javascript'
Plug 'leafgarland/typescript-vim'
Plug 'peitalin/vim-jsx-typescript'
Plug 'styled-components/vim-styled-components', { 'branch': 'main' }
Plug 'jparise/vim-graphql'
Plug 'vim-python/python-syntax'
" Initialize plugin system
call plug#end()
" Setting for onedark.vim
colorscheme onedark
set number
set autoindent
set tabstop=2
set shiftwidth=2
set expandtab
filetype on
syntax on
" [python]
autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab
" Setting for lightline.vim
set laststatus=2
set noshowmode
let g:lightline = {
\ 'colorscheme': 'one',
\ }
" Setting for vim-prettier
let g:prettier#autoformat = 1
let g:prettier#autoformat_require_pragma = 0
" Set filetypes as typescriptreact
autocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescriptreact
" Highlighting for large files
autocmd BufEnter *.{js,jsx,ts,tsx} :syntax sync fromstart
autocmd BufLeave *.{js,jsx,ts,tsx} :syntax sync clearI'm running into the same thing. How did you fix this issue?
Same issue for me, I use the onedark theme and it does not highlights correctly. How did you do @IamMrandrew ?
@SKOHscripts @SquarishRectangle I need to check when I get to home, I forgot if I have fixed it or not
