AutoYADM commit: 2024-12-21 01:30:02
This commit is contained in:
parent
3e188d9af2
commit
d2b15874ce
4 changed files with 28 additions and 4 deletions
|
@ -17,9 +17,8 @@ vim.api.nvim_create_autocmd("VimEnter", {
|
|||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "markdown",
|
||||
callback = function()
|
||||
if vim.g.md_tex then
|
||||
vim.opt_local.breakindent = true
|
||||
vim.cmd([[
|
||||
vim.opt_local.breakindent = true
|
||||
vim.cmd([[
|
||||
syn region mathBlock start=/\$\$/ end=/\$\$/ contains=@tex
|
||||
" inline math
|
||||
syn match mathInline '\$[^$].\{-}\$' contains=@tex
|
||||
|
@ -28,7 +27,6 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||
hi def link mathBlock Statement
|
||||
hi def link mathInline Statement
|
||||
]])
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
|
@ -8,6 +8,12 @@ return {
|
|||
{
|
||||
"saghen/blink.cmp",
|
||||
opts = {
|
||||
sources = {
|
||||
default = { "lsp", "path", "snippets", "buffer", "markdown", "lazydev" },
|
||||
providers = {
|
||||
markdown = { name = "RenderMarkdown", module = "render-markdown.integ.blink" },
|
||||
},
|
||||
},
|
||||
appearance = {
|
||||
nerd_font_variant = "mono",
|
||||
},
|
||||
|
|
16
.config/nvim/lua/plugins/marksman.lua
Normal file
16
.config/nvim/lua/plugins/marksman.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
opts = {
|
||||
ensure_installed = "marksman",
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
marksman = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -21,9 +21,13 @@ return {
|
|||
-- icons = { "•", "⦾", "∙" },
|
||||
icons = { "•", "∙" },
|
||||
},
|
||||
latex = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
ft = { "markdown", "rmd", "vimwiki" },
|
||||
config = function(_, opts)
|
||||
vim.g.md_tex = true
|
||||
require("render-markdown").setup(opts)
|
||||
Snacks.toggle({
|
||||
name = "Render Markdown",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue