aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-08 21:58:12 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-08 21:58:12 +0900
commitcec57a8e79bab5c5e33ca0cc87228bca22c28035 (patch)
treebe988c9055658cc182656480b51c926ce16ed6b9
parentc3e4b62d1ed0cfcb138357a2006de3d4e6ac371a (diff)
parent1239492a1daefa48c25896bf0dedadf514c4682a (diff)
downloadvim-lsp-settings-cec57a8e79bab5c5e33ca0cc87228bca22c28035.tar.gz
vim-lsp-settings-cec57a8e79bab5c5e33ca0cc87228bca22c28035.tar.bz2
vim-lsp-settings-cec57a8e79bab5c5e33ca0cc87228bca22c28035.zip
Merge branch 'master' of git://github.com/mattn/vim-lsp-settings
-rw-r--r--README.md16
-rw-r--r--settings/javascript-typescript-stdio.vim2
-rw-r--r--settings/typescript-language-server.vim2
3 files changed, 16 insertions, 4 deletions
diff --git a/README.md b/README.md
index 2cbfdd9..01ee94b 100644
--- a/README.md
+++ b/README.md
@@ -19,14 +19,26 @@ For [vim-plug](https://github.com/junegunn/vim-plug) plugin manager:
```viml
Plug 'prabirshrestha/async.vim'
-Plug 'prabirshrestha/asyncomplete.vim'
-Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
```
You need to install both [vim-lsp](https://github.com/prabirshrestha/vim-lsp) and its accompanying plugins and vim-lsp-settings.
+If you want to use autocompletion plugin, you can use followings.
+
+#### asyncomplete.vim
+```viml
+Plug 'prabirshrestha/asyncomplete.vim'
+Plug 'prabirshrestha/asyncomplete-lsp.vim'
+```
+
+#### deoplete.nvim
+```viml
+Plug 'Shougo/deoplete.nvim'
+Plug 'lighttiger2505/deoplete-vim-lsp'
+```
+
### Notice
If you use plugin manager that is merging plugins (ex. dein), Please setting stop merging work(ex. dein / merged = 0) or set `g:lsp_settings_servers_dir` option to a different directory from the vim-lsp's default.
diff --git a/settings/javascript-typescript-stdio.vim b/settings/javascript-typescript-stdio.vim
index 9d3f645..227c2ae 100644
--- a/settings/javascript-typescript-stdio.vim
+++ b/settings/javascript-typescript-stdio.vim
@@ -5,7 +5,7 @@ augroup vimlsp_settings_javascript_typescript_stdio
\ 'cmd': {server_info->lsp_settings#get('javascript-typescript-stdio', 'cmd', [lsp_settings#exec_path('javascript-typescript-stdio')])},
\ 'root_uri':{server_info->lsp_settings#get('javascript-typescript-stdio', 'root_uri', lsp_settings#root_uri(g:lsp_settings_root_markers))},
\ 'initialization_options': lsp_settings#get('javascript-typescript-stdio', 'initialization_options', {"diagnostics": "true"}),
- \ 'whitelist': lsp_settings#get('javascript-typescript-stdio', 'whitelist', ['javascript', 'javascriptreact']),
+ \ 'whitelist': lsp_settings#get('javascript-typescript-stdio', 'whitelist', ['javascript', 'javascriptreact', 'javascript.jsx']),
\ 'blacklist': lsp_settings#get('javascript-typescript-stdio', 'blacklist', []),
\ 'config': lsp_settings#get('javascript-typescript-stdio', 'config', {}),
\ 'workspace_config': lsp_settings#get('javascript-typescript-stdio', 'workspace_config', {}),
diff --git a/settings/typescript-language-server.vim b/settings/typescript-language-server.vim
index 17b2db3..12ccba5 100644
--- a/settings/typescript-language-server.vim
+++ b/settings/typescript-language-server.vim
@@ -5,7 +5,7 @@ augroup vimlsp_settings_typescript_language_server
\ 'cmd': {server_info->lsp_settings#get('typescript-language-server', 'cmd', [lsp_settings#exec_path('typescript-language-server'), '--stdio'])},
\ 'root_uri':{server_info->lsp_settings#get('typescript-language-server', 'root_uri', lsp_settings#root_uri(extend(['package.json', 'tsconfig.json'], g:lsp_settings_root_markers)))},
\ 'initialization_options': lsp_settings#get('typescript-language-server', 'initialization_options', {"diagnostics": "true"}),
- \ 'whitelist': lsp_settings#get('typescript-language-server', 'whitelist', ['javascript', 'javascriptreact', 'typescript', 'typescriptreact']),
+ \ 'whitelist': lsp_settings#get('typescript-language-server', 'whitelist', ['javascript', 'javascriptreact', 'typescript', 'typescriptreact', 'typescript.tsx']),
\ 'blacklist': lsp_settings#get('typescript-language-server', 'blacklist', []),
\ 'config': lsp_settings#get('typescript-language-server', 'config', {}),
\ 'workspace_config': lsp_settings#get('typescript-language-server', 'workspace_config', {}),