Skip to content

Commit

Permalink
Merge pull request #80 from stevematney/typescript-fix
Browse files Browse the repository at this point in the history
Limiting the scope of plugin files.

Replace the `runtime!` statements for including external js/ts files with the more appropriate `source` statement.
  • Loading branch information
fleischie authored Oct 5, 2020
2 parents f36d391 + 5539c61 commit cf80b8c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion after/ftplugin/javascriptreact.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime! ftplugin/javascript.vim
source <sfile>:p:h/javascript.vim
2 changes: 1 addition & 1 deletion after/ftplugin/typescript.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime! ftplugin/javascript.vim
source <sfile>:p:h/javascript.vim
2 changes: 1 addition & 1 deletion after/ftplugin/typescriptreact.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime! ftplugin/typescript.vim
source <sfile>:p:h/typescript.vim
2 changes: 1 addition & 1 deletion after/indent/javascriptreact.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime! indent/javascript.vim
source <sfile>:p:h/javascript.vim
2 changes: 1 addition & 1 deletion after/indent/jsx.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime! indent/javascript.vim
source <sfile>:p:h/javascript.vim
2 changes: 1 addition & 1 deletion after/indent/typescript.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime! indent/javascript.vim
source <sfile>:p:h/javascript.vim
2 changes: 1 addition & 1 deletion after/indent/typescriptreact.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime! indent/javascript.vim
source <sfile>:p:h/javascript.vim
2 changes: 1 addition & 1 deletion after/syntax/javascriptreact.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime! syntax/javascript.vim
source <sfile>:p:h/javascript.vim
2 changes: 1 addition & 1 deletion after/syntax/typescript.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
runtime! syntax/javascript.vim
source <sfile>:p:h/javascript.vim

" define custom API section, that contains typescript annotations
" this is structurally similar to `jsFuncCall`, but allows type
Expand Down
2 changes: 1 addition & 1 deletion after/syntax/typescriptreact.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime! syntax/typescript.vim
source <sfile>:p:h/typescript.vim

0 comments on commit cf80b8c

Please sign in to comment.