From 39401d14ff83b55cf6a2d055025e6ce065a6a455 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 13 May 2025 23:32:59 +0200 Subject: [PATCH] nvim/lua/user/plugins/ide/lsp.lua: move markdown conf to lang/markdown --- nvim/lua/user/plugins/ide/lsp.lua | 24 ------------------------ nvim/lua/user/plugins/lang/markdown.lua | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/nvim/lua/user/plugins/ide/lsp.lua b/nvim/lua/user/plugins/ide/lsp.lua index 2843b79..adb9f61 100644 --- a/nvim/lua/user/plugins/ide/lsp.lua +++ b/nvim/lua/user/plugins/ide/lsp.lua @@ -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, diff --git a/nvim/lua/user/plugins/lang/markdown.lua b/nvim/lua/user/plugins/lang/markdown.lua index edd2a18..61c92fb 100644 --- a/nvim/lua/user/plugins/lang/markdown.lua +++ b/nvim/lua/user/plugins/lang/markdown.lua @@ -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 }, + }, + }, + }, } }