Neovim 3d model viewer with dcat.
- Neovim 0.12+
- dcat 1.4.0+
With lazy.nvim:
{
"Murat65536/dcat.nvim",
opts = {},
}:Dcat " view the current buffer's file
:Dcat model.glb " view a file
:Dcat model.glb --spin 1 " pass any dcat flags<C-c> closes the viewer. After closing a model you opened with :e, press e to edit it as text.
Models are drawn in pixels in terminals that support the Kitty graphics protocol or Sixel, and with text characters elsewhere.
:checkhealth dcat shows which you get.
The defaults:
require("dcat").setup({
cmd = "dcat", -- the dcat executable
args = {}, -- flags passed on every launch
output = nil, -- "kitty", "sixel", "truecolor", "palette" or "block"; nil picks automatically
layout = "current", -- "current", "fullscreen", "float", "split", "vsplit" or "tab"
})See :help dcat for everything else.