Skip to content

Commit

Permalink
Add history
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 12, 2023
1 parent b243c77 commit 8d39fca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/squint/js/demo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { default_extensions, complete_keymap } from '@nextjournal/clojure-mode';
import { extension as eval_ext, cursor_node_string, top_level_string } from '@nextjournal/clojure-mode/extensions/eval-region';
import { EditorView, drawSelection, keymap } from '@codemirror/view';
import { EditorState } from '@codemirror/state';
import { history, historyKeymap } from '@codemirror/commands';
import { syntaxHighlighting, defaultHighlightStyle, foldGutter } from '@codemirror/language';
import { compileStringEx } from 'squint-cljs';

Expand Down Expand Up @@ -89,10 +90,11 @@ let squintExtension = ( opts ) => {
}])}


let extensions = [ theme, foldGutter(),
let extensions = [ history(), theme, foldGutter(),
syntaxHighlighting(defaultHighlightStyle),
drawSelection(),
keymap.of(complete_keymap),
keymap.of(historyKeymap),
...default_extensions,
eval_ext({modifier: "Meta"}),
squintExtension({modifier: "Meta"})
Expand Down

0 comments on commit 8d39fca

Please sign in to comment.