feat(nvim): Markdown: QoL plugins and settings

- Link creation: autocommand to add <leader>ml shortcut for converting
  selected text to link
- Formatting: Use markdown-toc to format available TOC
- LSP: Add markdown-toc & markdownlint to Mason ensure_installed
- Plugin: render-markdown.nvim with pretty colors to make Obsidian-esk
  rendering
- Plugin: bullets.nvim for easier bullet-point operations (auto indent,
  auto increment numbers, etc.)
- Chore: Move all markdown plugins to lang-markdown.lua
- Plugin: img-clip.nvim: Paste screenshots from system-clipboard to
markdown (also create store the image as webp)
- Plugin: image.nvim: Show images across neovim. Renders image tags on
markdown
This commit is contained in:
Pratik Tripathy
2025-01-06 17:04:44 +05:30
parent d4f25554e1
commit 36f9e5d0b3
5 changed files with 197 additions and 78 deletions

View File

@@ -19,61 +19,6 @@ return {
{ "machakann/vim-highlightedyank" },
-- Render Markdown on Neovim
{
"MeanderingProgrammer/render-markdown.nvim",
opts = {
code = {
sign = false,
width = "block",
border = "thick",
position = "right",
language_name = false,
right_pad = 1,
},
heading = {
sign = false,
icons = {},
},
pipe_table = {
preset = "round",
},
indent = {
enabled = true,
skip_heading = true,
},
},
ft = { "markdown", "norg", "rmd", "org" },
config = function(_, opts)
require("render-markdown").setup(opts)
Snacks.toggle({
name = "Render Markdown",
get = function()
return require("render-markdown.state").enabled
end,
set = function(enabled)
local m = require("render-markdown")
if enabled then
m.enable()
else
m.disable()
end
end,
}):map("<leader>cM")
end,
},
-- colorscheme
{
"projekt0n/github-nvim-theme",
cond = require("config.util").is_not_vscode(),
lazy = false,
priority = 1000,
config = function()
-- vim.cmd("colorscheme github_dark_dimmed")
end,
},
{
"catppuccin/nvim",
name = "catppuccin",