Closed susiyaki closed 3 years ago
OH, it is hard to test...
What LSP do you use for TypeScript?
It seems typescript-language-server
.
We have not ESP skills.
Not working on Typescript file.
Please upload the reproduce instruction. It is hard to test.
It works for me without TypeScript projects.
The minimal vimrc:
if &compatible
set nocompatible
endif
set runtimepath^=~/work/ddc.vim
set runtimepath^=~/work/denops.vim
set runtimepath^=~/work/ddc-matcher_head
set runtimepath^=~/work/ddc-sorter_rank
if has('nvim')
set runtimepath+=~/src/nvim-lspconfig
set runtimepath^=~/work/ddc-nvim-lsp
lua << EOF
require'lspconfig'.tsserver.setup{}
EOF
endif
set completeopt=menuone,noinsert
filetype plugin indent on
syntax enable
call ddc#custom#patch_global('sources', ['nvim-lsp'])
call ddc#custom#patch_global('sourceOptions', {
\ '_': {
\ 'matchers': ['matcher_head'],
\ 'sorters': ['sorter_rank'],
\ },
\ 'nvim-lsp': {'mark': 'nvimlsp', 'forceCompletionPattern': '\.|:|->|"\w*/'},
\ })
call ddc#enable()
```j
It caused by nvim-lspconfig section hook.
Maybe I didn't put lspinstall
module in nvim/lua
but called it so couldn't complete setup.
Thanks!
Oh, OK.
I tried to use this plugin with dein.vim refered your vim config files.
But not working this plugin on Typescript project(It worked lsp suggestion when I opened other vim config). Other plugins worked fine.
I checked
LspInfo
and it's fine.Following code is
ddc.toml
file.denops.vim
,context_filetype.vim
,nvim-lspinstall
andimpatient.nvim
are imported other toml file like your vim config.