summary refs log tree commit diff
path: root/.vim/lua/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.vim/lua/lsp.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/.vim/lua/lsp.lua b/.vim/lua/lsp.lua
index 954f890..e2d8353 100644
--- a/.vim/lua/lsp.lua
+++ b/.vim/lua/lsp.lua
@@ -229,6 +229,12 @@ local servers = {
 }
 
 local setup = function()
+  -- configure floating win handlers
+  vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(
+    vim.lsp.handlers.hover, { border = _G.floating_win_border })
+  vim.lsp.handlers['textDocument/signature_help'] = vim.lsp.with(
+    vim.lsp.handlers.signature_help, { border = _G.floating_win_border })
+
   local caps = capabilities()
   for server, opts in pairs(servers) do
     if not opts.disabled then