Skip to content
Murat65536Public

About

dcat integration for neovim

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

dcat.nvim

Neovim 3d model viewer with dcat.

Requirements

  • Neovim 0.12+
  • dcat 1.4.0+

Install

With lazy.nvim:

{
  "Murat65536/dcat.nvim",
  opts = {},
}

Usage

: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.

Configuration

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.

About

dcat integration for neovim

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages