diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index 5e0d56b..cce9d30 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -18,6 +18,7 @@ return { 'j-hui/fidget.nvim', 'folke/trouble.nvim', 'nvim-tree/nvim-web-devicons', + 'ray-x/lsp_signature.nvim', -- Lua vim module support in lua language server 'folke/neodev.nvim', @@ -186,7 +187,6 @@ return { -- |vim.lsp.buf.hover()| if the server supports it, unless -- |'keywordprg'| was customized before calling |vim.lsp.start()|. vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts) - vim.keymap.set('i', '', vim.lsp.buf.signature_help, opts) -- Format whole buffer mapping vim.keymap.set('n', 'gq', vim.lsp.buf.format, opts) @@ -218,5 +218,12 @@ return { vim.keymap.set('n', 'tr', function() require('trouble').toggle() end, { remap = false }) + require('lsp_signature').setup({ + floating_window = true, + hint_enable = false, + toggle_key = '', + toggle_key_flip_floatwin_setting = true, + select_signature_key = '', + }) end }