mirror of
https://github.com/pnx/dotfiles
synced 2026-07-02 22:43:41 +02:00
nvim/lua/user/plugins/ide/lsp.lua: move markdown conf to lang/markdown
This commit is contained in:
parent
6b1dcffbd6
commit
39401d14ff
2 changed files with 14 additions and 24 deletions
|
|
@ -127,30 +127,6 @@ return {
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "williamboman/mason-lspconfig.nvim", version = "^1.0.0", config = function () end }
|
{ "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,
|
opts = options,
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,10 @@ return {
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
latex = { enabled = false },
|
latex = { enabled = false },
|
||||||
|
completions = {
|
||||||
|
lsp = { enabled = true },
|
||||||
|
blink = { enabled = true }
|
||||||
|
},
|
||||||
heading = {
|
heading = {
|
||||||
position = 'inline',
|
position = 'inline',
|
||||||
left_pad = 1,
|
left_pad = 1,
|
||||||
|
|
@ -34,5 +38,15 @@ return {
|
||||||
right_pad = 2,
|
right_pad = 2,
|
||||||
border = 'thick',
|
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 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue