Skip to content

Looking Glass

github-actions[bot] edited this page Feb 25, 2025 · 32 revisions

core.looking-glass

Code Blocks + Superpowers

The core.looking-glass module magnifies code blocks and allows you to edit them in a separate buffer.

module-showcase

Overview

The looking glass module provides a simple way to edit code blocks in an external buffer, which allows LSPs and other language-specific tools to kick in.

If you would like LSP features in code blocks without having to magnify, you can use core.integrations.otter.

Keybinds

This module exposes the following keybinds (see core.keybinds for instructions on mapping them):

  • neorg.looking-glass.magnify-code-block - magnify the code block under the cursor

Configuration

This module provides no configuration options!

Dependencies

  • core.integrations.treesitter - A module designed to integrate Treesitter into Neorg.
  • core.ui - A set of public functions to help developers create and manage UI (selection popups, prompts...) in their modules.
Clone this wiki locally