From 97cf6a51f45efdf529ac715878aacfafb7bd0a78 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 14 Oct 2021 14:52:50 +0200 Subject: [PATCH] Added signature plugin --- lua/mylsp.lua | 7 +++++++ lua/plugins.lua | 1 + 2 files changed, 8 insertions(+) diff --git a/lua/mylsp.lua b/lua/mylsp.lua index 6ee0d34..2864116 100644 --- a/lua/mylsp.lua +++ b/lua/mylsp.lua @@ -81,6 +81,13 @@ local on_attach = function(client, bufnr) augroup END ]], false) end + require "lsp_signature".on_attach({ + bind = true, -- This is mandatory, otherwise border config won't get registered. + handler_opts = { + border = "single" + }, + hi_parameter = "IncSearch" + }, bufnr) end -- Enable some language servers with the additional completion capabilities offered by nvim-cmp diff --git a/lua/plugins.lua b/lua/plugins.lua index 4cb2e48..f2caf7f 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -43,4 +43,5 @@ return require('packer').startup(function() use {'f-person/git-blame.nvim'} use {'windwp/nvim-autopairs'} use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make'} + use {'ray-x/lsp_signature.nvim'} end)