fix: revert hover to lsp handler
This commit is contained in:
parent
924b2e33a7
commit
803a69b015
2 changed files with 9 additions and 11 deletions
|
@ -1,3 +1,5 @@
|
|||
local config = require('cosmic.core.user')
|
||||
|
||||
-- set up lsp servers
|
||||
require('cosmic.lsp.providers')
|
||||
require('cosmic.lsp.diagnostics')
|
||||
|
@ -5,11 +7,10 @@ require('cosmic.lsp.commands')
|
|||
|
||||
-- currently handled by noice
|
||||
--
|
||||
--[[ local config = require('cosmic.core.user') ]]
|
||||
--[[ vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { ]]
|
||||
--[[ border = config.border, ]]
|
||||
--[[ }) ]]
|
||||
--[[]]
|
||||
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, {
|
||||
border = config.border,
|
||||
})
|
||||
|
||||
--[[ vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.signature_help, { ]]
|
||||
--[[ border = config.border, ]]
|
||||
--[[ }) ]]
|
||||
|
|
|
@ -3,15 +3,12 @@ require('noice').setup({
|
|||
notify = {
|
||||
merge = true,
|
||||
},
|
||||
hover = {
|
||||
border = {
|
||||
style = 'rounded',
|
||||
},
|
||||
position = { row = 2, col = 2 },
|
||||
},
|
||||
},
|
||||
lsp = {
|
||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||
hover = {
|
||||
enabled = false,
|
||||
},
|
||||
override = {
|
||||
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
|
||||
['vim.lsp.util.stylize_markdown'] = true,
|
||||
|
|
Loading…
Add table
Reference in a new issue