AutoYADM commit: 2024-12-21 01:30:02

This commit is contained in:
Daniel Fichtinger 2024-12-21 01:30:02 -05:00
parent 3e188d9af2
commit d2b15874ce
4 changed files with 28 additions and 4 deletions

View file

@ -17,7 +17,6 @@ vim.api.nvim_create_autocmd("VimEnter", {
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown", pattern = "markdown",
callback = function() callback = function()
if vim.g.md_tex then
vim.opt_local.breakindent = true vim.opt_local.breakindent = true
vim.cmd([[ vim.cmd([[
syn region mathBlock start=/\$\$/ end=/\$\$/ contains=@tex syn region mathBlock start=/\$\$/ end=/\$\$/ contains=@tex
@ -28,7 +27,6 @@ vim.api.nvim_create_autocmd("FileType", {
hi def link mathBlock Statement hi def link mathBlock Statement
hi def link mathInline Statement hi def link mathInline Statement
]]) ]])
end
end, end,
}) })

View file

@ -8,6 +8,12 @@ return {
{ {
"saghen/blink.cmp", "saghen/blink.cmp",
opts = { opts = {
sources = {
default = { "lsp", "path", "snippets", "buffer", "markdown", "lazydev" },
providers = {
markdown = { name = "RenderMarkdown", module = "render-markdown.integ.blink" },
},
},
appearance = { appearance = {
nerd_font_variant = "mono", nerd_font_variant = "mono",
}, },

View file

@ -0,0 +1,16 @@
return {
{
"williamboman/mason-lspconfig.nvim",
opts = {
ensure_installed = "marksman",
},
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
marksman = {},
},
},
},
}

View file

@ -21,9 +21,13 @@ return {
-- icons = { "•", "⦾", "∙" }, -- icons = { "•", "⦾", "∙" },
icons = { "", "" }, icons = { "", "" },
}, },
latex = {
enabled = false,
},
}, },
ft = { "markdown", "rmd", "vimwiki" }, ft = { "markdown", "rmd", "vimwiki" },
config = function(_, opts) config = function(_, opts)
vim.g.md_tex = true
require("render-markdown").setup(opts) require("render-markdown").setup(opts)
Snacks.toggle({ Snacks.toggle({
name = "Render Markdown", name = "Render Markdown",