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/jay-babu/mason-nvim-dap.nvim" },
|
||||||
{ src = "https://github.com/michaelrommel/nvim-silicon" },
|
{ src = "https://github.com/michaelrommel/nvim-silicon" },
|
||||||
{ src = "https://github.com/hat0uma/csvview.nvim.git" },
|
{ src = "https://github.com/hat0uma/csvview.nvim.git" },
|
||||||
{ src = "https://github.com/Thiago4532/mdmath.nvim" },
|
|
||||||
{ src = "https://github.com/folke/snacks.nvim" },
|
{ src = "https://github.com/folke/snacks.nvim" },
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -57,6 +56,7 @@ require("mini.jump2d").setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
local cmp = require('blink.cmp')
|
local cmp = require('blink.cmp')
|
||||||
|
cmp.build():pwait()
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
keymap = {
|
keymap = {
|
||||||
preset = "super-tab" }
|
preset = "super-tab" }
|
||||||
@@ -85,14 +85,9 @@ require("conform").setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
require("render-markdown").setup({
|
require("render-markdown").setup({
|
||||||
latex = { enabled = false }, -- mdmath.nvim renders math as images
|
|
||||||
code = { inline_pad = 0, highlight_inline = "RenderMarkdownCode" },
|
code = { inline_pad = 0, highlight_inline = "RenderMarkdownCode" },
|
||||||
})
|
})
|
||||||
|
|
||||||
require("mdmath").setup({
|
|
||||||
dynamic_scale = 0.5,
|
|
||||||
})
|
|
||||||
|
|
||||||
require("snacks").setup({
|
require("snacks").setup({
|
||||||
image = {
|
image = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
@@ -110,15 +105,6 @@ vim.keymap.set({ "n", "t" }, "<leader>t",
|
|||||||
end,
|
end,
|
||||||
{ desc = "Toggle terminal" })
|
{ 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", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = "markdown",
|
pattern = "markdown",
|
||||||
callback = function(ev)
|
callback = function(ev)
|
||||||
|
|||||||
Reference in New Issue
Block a user