From c5b50e82c6008f1d66f96b3a4874c4127aadb705 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Mon, 11 May 2020 13:48:23 +0200 Subject: [PATCH] Add Tern and TypeScript plugins --- .gitmodules | 9 +++++++++ bundle/tern_for_vim | 1 + bundle/tsuquyomi | 1 + bundle/vimproc.vim | 1 + vimrc | 11 +++++++++-- 5 files changed, 21 insertions(+), 2 deletions(-) create mode 160000 bundle/tern_for_vim create mode 160000 bundle/tsuquyomi create mode 160000 bundle/vimproc.vim diff --git a/.gitmodules b/.gitmodules index 0b96843..dc0ec46 100644 --- a/.gitmodules +++ b/.gitmodules @@ -70,3 +70,12 @@ [submodule "bundle/vim-abolish"] path = bundle/vim-abolish url = git@github.com:tpope/vim-abolish.git +[submodule "bundle/tern_for_vim"] + path = bundle/tern_for_vim + url = git@github.com:ternjs/tern_for_vim.git +[submodule "bundle/vimproc.vim"] + path = bundle/vimproc.vim + url = git@github.com:Shougo/vimproc.vim.git +[submodule "bundle/tsuquyomi"] + path = bundle/tsuquyomi + url = git@github.com:Quramy/tsuquyomi.git diff --git a/bundle/tern_for_vim b/bundle/tern_for_vim new file mode 160000 index 0000000..994ffbe --- /dev/null +++ b/bundle/tern_for_vim @@ -0,0 +1 @@ +Subproject commit 994ffbe783da36d67786b6c66a4bf784c5eab300 diff --git a/bundle/tsuquyomi b/bundle/tsuquyomi new file mode 160000 index 0000000..85fffd5 --- /dev/null +++ b/bundle/tsuquyomi @@ -0,0 +1 @@ +Subproject commit 85fffd5939c8fc5750b35a937b965af2ad5b0b15 diff --git a/bundle/vimproc.vim b/bundle/vimproc.vim new file mode 160000 index 0000000..51f4664 --- /dev/null +++ b/bundle/vimproc.vim @@ -0,0 +1 @@ +Subproject commit 51f4664c92f0f1b121127c84d3b1c901e1c698f0 diff --git a/vimrc b/vimrc index fabdd5c..a0c73af 100644 --- a/vimrc +++ b/vimrc @@ -116,13 +116,13 @@ map vr :VimroomToggle let g:vimroom_width = 120 " CTags -map ct :!/usr/bin/ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . +map ct :!/usr/bin/ctags -R --extra=+q . set tags+=gems.tags " Color scheme colorscheme smyck -let g:syntastic_mode_map = { 'mode': 'active', 'active_filetypes': ['ruby', 'js', 'javascript'], 'passive_filetypes': ['puppet'] } +let g:syntastic_mode_map = { 'mode': 'active', 'active_filetypes': ['ruby', 'js', 'javascript', 'ts', 'typescript'], 'passive_filetypes': ['puppet'] } let g:syntastic_javascript_checkers = ['eslint'] " Highlight the current line when in insert mode @@ -148,3 +148,10 @@ map (xmpfilter-run) autocmd filetype make setlocal noexpandtab let g:ycm_server_python_interpreter = '/usr/bin/python3' + +" TypeScript +let g:syntastic_typescript_checkers = ['eslint', 'tsuquyomi'] +let g:tsuquyomi_disable_quickfix = 1 + +" Store swap files etc. in a central location instead of next to source files +set directory^=$HOME/.vim/tmp//