nvim: Move to image.nvim fork which works with typst
Though ostensibly compatible with typst, there is a show-stopping issue with the main image.nvim fork which means an error message whenever there is more than one typst buffer open (e.g. two side-by-side, or opening a fzf-lua windows with typst previews, and so on). Until that is fixed, use this fork. Issue here: https://github.com/3rd/image.nvim/pull/280
This commit is contained in:
parent
2f618d65d5
commit
ff2ae79878
3 changed files with 12 additions and 11 deletions
nvim/.config/nvim
|
@ -24,7 +24,7 @@
|
||||||
"grug-far.nvim": { "branch": "main", "commit": "3e72486d0123d08f5b253847ab6e00ca12353242" },
|
"grug-far.nvim": { "branch": "main", "commit": "3e72486d0123d08f5b253847ab6e00ca12353242" },
|
||||||
"helpview.nvim": { "branch": "main", "commit": "49e8d4782ae73274a35d606fde2844b6e958a0c7" },
|
"helpview.nvim": { "branch": "main", "commit": "49e8d4782ae73274a35d606fde2844b6e958a0c7" },
|
||||||
"hunk.nvim": { "branch": "master", "commit": "b475ba0011e4b8ef7d7ddecd9764ee1a5f41366d" },
|
"hunk.nvim": { "branch": "master", "commit": "b475ba0011e4b8ef7d7ddecd9764ee1a5f41366d" },
|
||||||
"image.nvim": { "branch": "master", "commit": "6ffafab2e98b5bda46bf227055aa84b90add8cdc" },
|
"image.nvim": { "branch": "master", "commit": "a4638ec549c6aa56264cb0371255192ff37a8a90" },
|
||||||
"img-clip.nvim": { "branch": "main", "commit": "0bb8b5ced45c2672c70184c87d014194b0705815" },
|
"img-clip.nvim": { "branch": "main", "commit": "0bb8b5ced45c2672c70184c87d014194b0705815" },
|
||||||
"jupytext.nvim": { "branch": "main", "commit": "c8baf3ad344c59b3abd461ecc17fc16ec44d0f7b" },
|
"jupytext.nvim": { "branch": "main", "commit": "c8baf3ad344c59b3abd461ecc17fc16ec44d0f7b" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||||
|
|
|
@ -103,7 +103,10 @@ local languages = {
|
||||||
lint = { typescript = { "eslint_d" }, typescriptreact = { "eslint_d" } },
|
lint = { typescript = { "eslint_d" }, typescriptreact = { "eslint_d" } },
|
||||||
format = { typescript = { "prettier" }, typescriptreact = { "prettier" } },
|
format = { typescript = { "prettier" }, typescriptreact = { "prettier" } },
|
||||||
},
|
},
|
||||||
typst = { lsp = { tinymist = { settings = { formatterMode = "typstyle" } } }, ts = { "typst" } },
|
typst = {
|
||||||
|
lsp = { tinymist = { settings = { formatterMode = "typstyle" } } },
|
||||||
|
ts = { "typst" },
|
||||||
|
},
|
||||||
vue = { format = { vue = { "prettier", "rustywind" } } },
|
vue = { format = { vue = { "prettier", "rustywind" } } },
|
||||||
yaml = { lsp = { yamlls = {}, ansiblels = {} }, ts = { "yaml" }, format = { yaml = { "prettier" } } },
|
yaml = { lsp = { yamlls = {}, ansiblels = {} }, ts = { "yaml" }, format = { yaml = { "prettier" } } },
|
||||||
zsh = { format = { zsh = { "shfmt" } } },
|
zsh = { format = { zsh = { "shfmt" } } },
|
||||||
|
|
|
@ -55,7 +55,9 @@ return {
|
||||||
|
|
||||||
-- image display
|
-- image display
|
||||||
{
|
{
|
||||||
"3rd/image.nvim",
|
-- "3rd/image.nvim", -- using Fork until https://github.com/3rd/image.nvim/pull/280 is merged
|
||||||
|
"UnaTried/image.nvim",
|
||||||
|
name = "image.nvim",
|
||||||
version = false,
|
version = false,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "leafo/magick" }, -- luarock, ensure global luarock51 dependency
|
{ "leafo/magick" }, -- luarock, ensure global luarock51 dependency
|
||||||
|
@ -71,12 +73,8 @@ return {
|
||||||
only_render_image_at_cursor = true,
|
only_render_image_at_cursor = true,
|
||||||
filetypes = { "markdown", "vimwiki", "quarto" },
|
filetypes = { "markdown", "vimwiki", "quarto" },
|
||||||
},
|
},
|
||||||
neorg = {
|
neorg = { only_render_image_at_cursor = true },
|
||||||
only_render_image_at_cursor = true,
|
typst = { only_render_image_at_cursor = true },
|
||||||
},
|
|
||||||
typst = {
|
|
||||||
only_render_image_at_cursor = true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
@ -106,7 +104,7 @@ return {
|
||||||
"benlubas/molten-nvim",
|
"benlubas/molten-nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "willothy/wezterm.nvim", config = true },
|
{ "willothy/wezterm.nvim", config = true },
|
||||||
{ "3rd/image.nvim", optional = true },
|
{ "image.nvim", optional = true },
|
||||||
},
|
},
|
||||||
build = ":UpdateRemotePlugins",
|
build = ":UpdateRemotePlugins",
|
||||||
init = function()
|
init = function()
|
||||||
|
|
Loading…
Reference in a new issue