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)