Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

600 B
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */
import { EditorView } from "@codemirror/view";
import { createUnderlinePlugin, underlineField } from "./underline";
import { goToDefinitionWithLspFallback } from "./utils";

/**
 * Create a go-to-definition extension.
 */
export function goToDefinitionBundle() {
  return [
    underlineField,
    createUnderlinePlugin((view) => {
      goToDefinitionWithLspFallback(view);
    }),
    EditorView.baseTheme({
      ".underline": {
        textDecoration: "underline",
        cursor: "pointer",
        color: "var(--link)",
      },
    }),
  ];
}