From 6f099de94efca6eab09656b04a29fe3e72695d7d Mon Sep 17 00:00:00 2001 From: Natercio Moniz Date: Mon, 7 Oct 2024 23:20:53 +0100 Subject: [PATCH] add lsp_signature --- init.lua | 2 +- lua/custom/plugins/lsp_signature.lua | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/lsp_signature.lua diff --git a/init.lua b/init.lua index e4bf408..9f11291 100644 --- a/init.lua +++ b/init.lua @@ -743,7 +743,7 @@ require('lazy').setup({ -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the diff --git a/lua/custom/plugins/lsp_signature.lua b/lua/custom/plugins/lsp_signature.lua new file mode 100644 index 0000000..b8e195f --- /dev/null +++ b/lua/custom/plugins/lsp_signature.lua @@ -0,0 +1,15 @@ +return { + 'ray-x/lsp_signature.nvim', + event = 'InsertEnter', + opts = { + bind = true, + doc_lines = 0, + close_timeout = 1000, + handler_opts = { + border = 'rounded', + }, + }, + config = function(_, opts) + require('lsp_signature').setup(opts) + end, +}