Public Access
removed mdmath + added build vor blink.cmp
This commit is contained in:
+1
-15
@@ -31,7 +31,6 @@ vim.pack.add({
|
||||
{ src = "https://github.com/jay-babu/mason-nvim-dap.nvim" },
|
||||
{ src = "https://github.com/michaelrommel/nvim-silicon" },
|
||||
{ src = "https://github.com/hat0uma/csvview.nvim.git" },
|
||||
{ src = "https://github.com/Thiago4532/mdmath.nvim" },
|
||||
{ src = "https://github.com/folke/snacks.nvim" },
|
||||
})
|
||||
|
||||
@@ -57,6 +56,7 @@ require("mini.jump2d").setup({
|
||||
})
|
||||
|
||||
local cmp = require('blink.cmp')
|
||||
cmp.build():pwait()
|
||||
cmp.setup({
|
||||
keymap = {
|
||||
preset = "super-tab" }
|
||||
@@ -85,14 +85,9 @@ require("conform").setup({
|
||||
})
|
||||
|
||||
require("render-markdown").setup({
|
||||
latex = { enabled = false }, -- mdmath.nvim renders math as images
|
||||
code = { inline_pad = 0, highlight_inline = "RenderMarkdownCode" },
|
||||
})
|
||||
|
||||
require("mdmath").setup({
|
||||
dynamic_scale = 0.5,
|
||||
})
|
||||
|
||||
require("snacks").setup({
|
||||
image = {
|
||||
enabled = true,
|
||||
@@ -110,15 +105,6 @@ vim.keymap.set({ "n", "t" }, "<leader>t",
|
||||
end,
|
||||
{ desc = "Toggle terminal" })
|
||||
|
||||
-- Rebuild mdmath JS deps on plugin update
|
||||
vim.api.nvim_create_autocmd("PackChanged", {
|
||||
callback = function(ev)
|
||||
if ev.data.spec.name == "mdmath.nvim" and ev.data.kind == "update" then
|
||||
vim.system({ "npm", "install" }, { cwd = ev.data.path .. "/mdmath-js" })
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "markdown",
|
||||
callback = function(ev)
|
||||
|
||||
Reference in New Issue
Block a user