fix: revert hover to lsp handler

This commit is contained in:
Matthew Leong 2022-12-22 10:47:10 -08:00
parent 924b2e33a7
commit 803a69b015
2 changed files with 9 additions and 11 deletions

View file

@ -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, ]]
--[[ }) ]]

View file

@ -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,