Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Latest commit

 

History

History
44 lines (33 loc) · 984 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 984 Bytes

Description

This plugin automatically triggers signature help for you: image

Installation

With packer:

local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'

if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
  vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
end

vim.cmd [[
  augroup Packer
    autocmd!
    autocmd BufWritePost init.lua PackerCompile
  augroup end
]]

local use = require('packer').use
require('packer').startup(function()
  use 'neovim/nvim-lspconfig'
  use 'mjlbach/lsp-signature.nvim'
end)

Usage

local on_attach = function(client, bufnr)
  require('lsp_signature').attach(client, bufnr)
end

require('lspconfig').pyright.setup {
  on_attach = on_attach
}

Credit

The design of this was heavily inspired by nvim-lsp-compl