summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/extra/lsp_signature.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/extra/lsp_signature.lua')
-rw-r--r--.config/nvim/lua/extra/lsp_signature.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/nvim/lua/extra/lsp_signature.lua b/.config/nvim/lua/extra/lsp_signature.lua
new file mode 100644
index 0000000..7e67a4d
--- /dev/null
+++ b/.config/nvim/lua/extra/lsp_signature.lua
@@ -0,0 +1,14 @@
+local M = {}
+local Log = require "core.log"
+
+M.config = function()
+ local status_ok, lsp_signature = pcall(require, "lsp_signature")
+ if not status_ok then
+ Log:get_default().error "Failed to load lsp_signature"
+ return
+ end
+
+ lsp_signature.on_attach()
+end
+
+return M