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

nvim/lua/user/plugins/ide/lsp.lua: move markdown conf to lang/markdown

This commit is contained in:
Henrik Hautakoski 2025-05-13 23:32:59 +02:00
parent 6b1dcffbd6
commit 39401d14ff
2 changed files with 14 additions and 24 deletions

View file

@ -127,30 +127,6 @@ return {
dependencies = {
{ "williamboman/mason-lspconfig.nvim", version = "^1.0.0", config = function () end }
}
},
-- 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 = options,

View file

@ -21,6 +21,10 @@ return {
},
opts = {
latex = { enabled = false },
completions = {
lsp = { enabled = true },
blink = { enabled = true }
},
heading = {
position = 'inline',
left_pad = 1,
@ -34,5 +38,15 @@ return {
right_pad = 2,
border = 'thick',
},
overrides = {
buftype = {
nofile = {
render_modes = true,
padding = { highlight = 'NormalFloat' },
sign = { enabled = false },
code = { style = "normal", border = 'none', left_pad = 0, right_pad = 0 },
},
},
},
}
}