Skip to content

matsui54/denops-signature_help

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

denops-signature_help

Shows signature help from lsp server.

Features

  • Works in both Vim and Neovim.
  • Support both vim-lsp and Neovim builtin lsp.
  • Support multiple styles of how to show signature help.

Screenshots

Normal

Configuration

let g:signature_help_config = {
      \ contentsStyle: "full",
      \ viewStyle: "floating"
      \ }

signature_full

Only labels

Configuration

let g:signature_help_config = {
      \ contentsStyle: "labels",
      \ viewStyle: "floating"
      \ }

signature_labelOnly

Only current label

Configuration

let g:signature_help_config = {
      \ contentsStyle: "currentLabel",
      \ viewStyle: "floating"
      \ }

signature_currentLabelOnly

Virtual text style

Configuration

let g:signature_help_config = {
      \ contentsStyle: "remainingLabels",
      \ viewStyle: "virtual"
      \ }

In Neovim,

signature_virtual

In Vim,

signature_virtual_vim

Required

denops.vim

https://github.com/vim-denops/denops.vim

lsp client

vim-lsp or Neovim builtin lsp.

Install

Use your favorite plugin manager.

Configuration

For detail, please see help.

call signature_help#enable()

" if you use with vim-lsp, disable vim-lsp's signature help feature
let g:lsp_signature_help_enabled = 0

TODO

  • add toggle mapping
  • support multiple label support