diff --git a/modules/module/specs/plugins.nix b/modules/module/specs/plugins.nix index 4a3324a..ff072cc 100644 --- a/modules/module/specs/plugins.nix +++ b/modules/module/specs/plugins.nix @@ -70,6 +70,7 @@ in { lazy = true; data = [ config.nvim-lib.neovimPlugins.cmp-pandoc-references + pkgs.vimPlugins.image-nvim ]; }; @@ -184,11 +185,20 @@ in { colorful-menu-nvim conform-nvim copilot-lua + nvim-lint + vim-slime + ]; + }; + + -- Lazy-loaded plugins needed when the `r` cat is on. Kept separate from + -- `utils-lazy` so users with `r=true` and `utils=false` still get the + -- R debugger (via vscDebugger) and in-buffer image rendering for plots. + config.specs.r-lazy = lib.mkIf (config.cats.r or false) { + lazy = true; + data = with pkgs.vimPlugins; [ nvim-dap nvim-dap-ui nvim-dap-virtual-text - nvim-lint - vim-slime image-nvim ]; }; diff --git a/plugin/27_image.lua b/plugin/27_image.lua index 18a424a..89e0d2f 100644 --- a/plugin/27_image.lua +++ b/plugin/27_image.lua @@ -24,7 +24,11 @@ later(function() end image.setup({ - backend = "auto", + -- Backend is intentionally NOT set so image.nvim auto-detects the + -- graphics protocol (kitty / wezterm / iterm / sixel) at runtime and + -- falls back to no rendering on unsupported terminals. The literal + -- strings "auto" / "none" are not accepted by image.nvim.setup(), so + -- setting either would silently disable rendering everywhere. integrations = { markdown = { enabled = true,