1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: lsp: make sure to install a markdown renderer.

This commit is contained in:
Henrik Hautakoski 2024-08-27 22:10:47 +02:00
parent 55a4798866
commit 112b646bd4

View file

@ -10,6 +10,30 @@ return {
"hrsh7th/cmp-nvim-lsp-signature-help"
},
},
-- LSP often return markdown that neovim parses.
-- make sure we have a plugin that can render markdown to nicer text
{
'MeanderingProgrammer/render-markdown.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = { "markdown", "markdown_inline" }
}
}
},
opts = {
overrides = {
buftype = {
-- LSP Hover = "nofile"
nofile = {
code = { left_pad = 0, right_pad = 0 },
},
},
},
}
}
},
opts = {
document_highlight = {