nvim: configure window position for LSP hover

but it doesn't work (yet?)
This commit is contained in:
tastytea 2022-10-03 00:11:35 +02:00
parent eb6c9ff7e6
commit 1fb4dc1de9
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -80,11 +80,14 @@ local lsp_status = require('lsp-status')
lsp_status.register_progress()
capabilities = vim.tbl_extend('keep', capabilities, lsp_status.capabilities)
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(
vim.lsp.handlers.hover, {
-- opens lsp.util.open_floating_preview() -> nvim_open_win()
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, {
border = 'rounded',
width = 60,
focusable = false
focusable = false,
-- next 2 lines do nothing
relative = 'win',
anchor = 'NE',
})
-- setup servers