mattn / mattn/vim-lsp-settings
Fresh Install Not Working
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 1.4k
- Forks
- 245
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
I have these two entries using plug.
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
related config.
function! s:on_lsp_buffer_enabled() abort
setlocal omnifunc=lsp#complete
setlocal signcolumn=yes
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
nmap <buffer> <leader>cd <plug>(lsp-definition)
nmap <buffer> <leader>cs <plug>(lsp-document-symbol-search)
nmap <buffer> <leader>cS <plug>(lsp-workspace-symbol-search)
nmap <buffer> <leader>c/ <plug>(lsp-references)
nmap <buffer> <leader>ci <plug>(lsp-implementation)
nmap <buffer> <leader>ct <plug>(lsp-type-definition)
nmap <buffer> <leader>rn <plug>(lsp-rename)
nmap <buffer> <leader>cp <plug>(lsp-previous-diagnostic)
nmap <buffer> <leader>cn <plug>(lsp-next-diagnostic)
nmap <buffer> <leader>ch <plug>(lsp-hover)
nnoremap <buffer> <expr><c-f> lsp#scroll(+4)
nnoremap <buffer> <expr><c-d> lsp#scroll(-4)
let g:lsp_format_sync_timeout = 1000
autocmd! BufWritePre *.rs,*.go,*.ts call execute('LspDocumentFormatSync')
" refer to doc to add more commands
endfunction
augroup lsp_install
au!
" call s:on_lsp_buffer_enabled only for languages that has the server registered.
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
augroup END
and then I ran LspInstallServer typescript-language-server
When I look at the manage list I see a [*] for typescript.
However, the lsp doesn't seem to be running.
Is there additional config I need?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin with the Plug entries, the User lsp_buffer_enabled autocmd, and the LspInstallServer typescript-language-server command. Trace the manage-list [*] state and verify what configuration is required for the TypeScript server to start; done when a TypeScript buffer runs the LSP with the shown mappings or the missing setup is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100