mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-24 20:18:34 +00:00
enable autocompletion
This commit is contained in:
parent
44be6cee2c
commit
3069b14e9c
@ -7,7 +7,7 @@ import strudelTheme from '../themes/strudel-theme';
|
|||||||
import './style.css';
|
import './style.css';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
import { autocompletion } from '@codemirror/autocomplete';
|
import { autocompletion } from '@codemirror/autocomplete';
|
||||||
//import { strudelAutocomplete } from './Autocomplete';
|
import { strudelAutocomplete } from './Autocomplete';
|
||||||
import { vim } from '@replit/codemirror-vim';
|
import { vim } from '@replit/codemirror-vim';
|
||||||
import { emacs } from '@replit/codemirror-emacs';
|
import { emacs } from '@replit/codemirror-emacs';
|
||||||
|
|
||||||
@ -93,8 +93,7 @@ const staticExtensions = [
|
|||||||
highlightField,
|
highlightField,
|
||||||
flashField,
|
flashField,
|
||||||
// javascriptLanguage.data.of({ autocomplete: strudelAutocomplete }),
|
// javascriptLanguage.data.of({ autocomplete: strudelAutocomplete }),
|
||||||
// autocompletion({ override: [strudelAutocomplete] }),
|
autocompletion({ override: [strudelAutocomplete] }),
|
||||||
autocompletion({ override: [] }), // wait for https://github.com/uiwjs/react-codemirror/pull/458
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function CodeMirror({
|
export default function CodeMirror({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user