mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] fix syntax syncing for JS/TS after a vim-polyglot update (this made opening crosscode/assets/js/game.compiled.js insanely slow)
This commit is contained in:
parent
955559db5e
commit
14e64127e4
9 changed files with 5 additions and 6 deletions
|
@ -1 +0,0 @@
|
|||
setlocal iskeyword+=-
|
|
@ -1 +0,0 @@
|
|||
setlocal matchpairs-=<:>
|
|
@ -1,4 +1,4 @@
|
|||
execute 'source' fnameescape(expand('<sfile>:p:h').'/text.vim')
|
||||
source <sfile>:h/text.vim
|
||||
|
||||
let s:src_file = expand('%')
|
||||
let s:out_file = s:src_file.'.html'
|
||||
|
|
|
@ -1 +1 @@
|
|||
execute 'source' fnameescape(expand('<sfile>:p:h').'/text.vim')
|
||||
source <sfile>:h/text.vim
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
execute 'source' fnameescape(expand('<sfile>:p:h').'/css.vim')
|
|
@ -1 +0,0 @@
|
|||
execute 'source' fnameescape(expand('<sfile>:p:h').'/javascript.vim')
|
1
nvim/after/syntax/javascript.vim
Normal file
1
nvim/after/syntax/javascript.vim
Normal file
|
@ -0,0 +1 @@
|
|||
syntax sync minlines=500
|
1
nvim/after/syntax/typescript.vim
Normal file
1
nvim/after/syntax/typescript.vim
Normal file
|
@ -0,0 +1 @@
|
|||
source <sfile>:h/javascript.vim
|
1
nvim/after/syntax/typescriptreact.vim
Normal file
1
nvim/after/syntax/typescriptreact.vim
Normal file
|
@ -0,0 +1 @@
|
|||
source <sfile>:h/typescript.vim
|
Loading…
Reference in a new issue