-
Notifications
You must be signed in to change notification settings - Fork 306
Description
Hello, I had vim polyglot on my desktop, installed 4 months ago working perfectly. Now I have downloaded vim and installed a bunch of plugins on my laptop, including polyglot but there is no syntax highlighting.
My vimrc (identical to the one on my desktop):
" Terminal build: Tilda terminal emulator
" Tilda color pallete: base16:
" Link: https://github.com/Gwyki/base16-tilda
syntax on
filetype plugin indent on
set hidden
set noerrorbells visualbell t_vb=
" No ringing
if has('autocmd')
autocmd GUIEnter * set visualbell t_vb=
endif
if has('nvim')
set nohlsearch!
endif
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set rnu
set nu
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch
"
" Give more space for displaying messages.
set cmdheight=2
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
" delays and poor user experience.
set updatetime=50
" Don't pass messages to |ins-completion-menu|.
set shortmess+=c
set colorcolumn=80
highlight ColorColumn ctermbg=0 guibg=lightgrey
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline-themes'
Plug 'tomasiser/vim-code-dark'
Plug 'vimoxide/vim-cinnabar'
Plug 'bignimbus/pop-punk.vim'
Plug 'neoclide/coc.nvim', { 'branch' : 'release' }
Plug 'alx741/vim-rustfmt'
Plug 'dense-analysis/ale'
Plug 'rust-lang/rust.vim'
"Plug 'jaspervdj/stylish-haskell'
Plug 'chrisdone/hindent'
Plug 'urso/haskell_syntax.vim'
"Plug 'neovimhaskell/haskell-vim'
" For the low bar
Plug 'vim-airline/vim-airline'
" Repo with a shit ton of colorschemes
" Link : https://github.com/rafi/awesome-vim-colorschemes
Plug 'rafi/awesome-vim-colorschemes'
Plug 'artanikin/vim-synthwave84'
" Monokai theme
Plug 'sickill/vim-monokai'
" Palenight theme
Plug 'drewtempelmeyer/palenight.vim'
Plug 'sheerun/vim-polyglot'
"Plug 'Valloric/YouCompleteMe'
Plug 'jremmen/vim-ripgrep'
Plug 'tpope/vim-fugitive'
Plug 'leafgarland/typescript-vim'
Plug 'vim-utils/vim-man'
Plug 'lyuts/vim-rtags'
Plug 'mbbill/undotree'
Plug 'scrooloose/nerdtree'
call plug#end()
colorscheme Atelier_DuneDark
syntax on
set background=dark
if (has("nvim"))
"For Neovim 0.1.3 and 0.1.4 < neovim/neovim#2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < vim/vim@61be73b >
"Based on Vim patch 7.4.1770 (guicolors option) < vim/vim@8a633e3 >
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has("termguicolors"))
set termguicolors
endif
"let g:haskell_enable_quantification = 1
"let g:haskell_enable_recursivedo = 1
"let g:haskell_enable_arrowsyntax = 1
"let g:haskell_enable_pattern_synonyms = 1
"let g:haskell_enable_typeroles = 1
"let g:haskell_enable_static_pointers = 1
"let g:haskell_backpack = 1
let g:termguicolors=256
let mapleader = " "
let g:rustfmt_on_save = 0
let g:netrw_browse_split = 2
let g:netrw_banner = 0
let g:netrw_winsize = 25
let g:ctrlp_use_caching = 0
nnoremap /<++>"_c4l
" Enter to add new line, brackets to look for brackets
map o
nnoremap { /{
nnoremap } /}
nnoremap [ /[
nnoremap ] /]
nnoremap ( /(
nnoremap ) /)
" Open new window on right and then open a NERDTree window
nnoremap vs :vsplit:wincmd l:NERDTree
nnoremap j :wincmd j
nnoremap k :wincmd k
nnoremap h :wincmd h
nnoremap l :wincmd l
nnoremap u :UndotreeShow
nnoremap al :ALEToggle
nnoremap nd :NERDTree
nnoremap pv :wincmd v :Ex :vertical resize 30
nnoremap ps :Rg
nnoremap + :vertical resize +5
nnoremap - :vertical resize -5
vnoremap J :m '>+1gv=gv
vnoremap K :m '<-2gv=gv
vnoremap "+p
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
fun! RsPrintln()
nnoremap p iprintln!("{}", );
endfun
fun! RustFmt()
nnoremap rs :Rustfmt
endfun
fun! TSCompile()
nnoremap ts :!tsc
endfun
fun! GoCoc()
inoremap
\ pumvisible() ? "<C-n>" :
\ check_back_space() ? "<TAB>" :
\ coc#refresh()
inoremap <buffer> <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
inoremap <buffer> <silent><expr> <C-space> coc#refresh()
" GoTo code navigation.
nmap <buffer> <leader>gd <Plug>(coc-definition)
nmap <buffer> <leader>gy <Plug>(coc-type-definition)
nmap <buffer> <leader>gi <Plug>(coc-implementation)
nmap <buffer> <leader>gr <Plug>(coc-references)
nnoremap <buffer> <leader>cr :CocRestart
endfun
" autocmd FileType cpp,cxx,h,hpp,c :colorscheme gruvbox
autocmd FileType cpp,cxx,h,hpp,c :call GoCoc()
autocmd FileType javascript,typescript :syntax on
autocmd FileType javascript,typescript :call GoCoc()
autocmd FileType typescript,javascript,html :colorscheme pop-punk
autocmd FileType typescript :call TSCompile()
autocmd FileType vimscript :colorscheme Atelier_DuneDark
autocmd FileType rust :call GoCoc()
autocmd FileType rust :call RsPrintln()
autocmd FileType rust :call RustFmt()
autocmd FileType haskell :syntax on
autocmd FileType haskell :colorscheme molokai
" Making automated s for html documents
autocmd FileType javascript,typescript,html inoremap ;b <++>kf/hi
autocmd FileType javascript,typescript,html inoremap ;p
autocmd FileType javascript,typescript,html inoremap ;h1 <++>kf/hi
autocmd FileType javascript,typescript,html inoremap ;h2 <++>kf/hi
Was wondering if polyglot was the problem, so i deleted plugged/vim-polyglot on my desktop, then reopened vim, called PlugInstall, quit vim, opened it again, and there was no highlighting, even on my desktop. I tried the alt version as well, cloning the repository itself. It's really weird, since I've had no problems at all with other plugins, and polyglot used to work on my desktop, but after reinstalling it today via plugged it doesn't work anymore (neither does cloning it). Since today's version (23 Sept 2020) doesn't work on either my laptop or desktop (on which it used to work) I am tempted to think that maybe there's a bug in today's live version? Need help please, I love polyglot I legit can't stand vim without it