nvim: configure window position for LSP hover
but it doesn't work (yet?)
This commit is contained in:
parent
eb6c9ff7e6
commit
1fb4dc1de9
|
@ -80,11 +80,14 @@ local lsp_status = require('lsp-status')
|
||||||
lsp_status.register_progress()
|
lsp_status.register_progress()
|
||||||
capabilities = vim.tbl_extend('keep', capabilities, lsp_status.capabilities)
|
capabilities = vim.tbl_extend('keep', capabilities, lsp_status.capabilities)
|
||||||
|
|
||||||
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(
|
-- opens lsp.util.open_floating_preview() -> nvim_open_win()
|
||||||
vim.lsp.handlers.hover, {
|
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, {
|
||||||
border = 'rounded',
|
border = 'rounded',
|
||||||
width = 60,
|
width = 60,
|
||||||
focusable = false
|
focusable = false,
|
||||||
|
-- next 2 lines do nothing
|
||||||
|
relative = 'win',
|
||||||
|
anchor = 'NE',
|
||||||
})
|
})
|
||||||
|
|
||||||
-- setup servers
|
-- setup servers
|
||||||
|
|
Loading…
Reference in New Issue
Block a user