mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
This commit is contained in:
parent
9d17ab429d
commit
c40682f16f
@ -11,6 +11,7 @@ import { html } from '@codemirror/lang-html';
|
||||
import { defaultKeymap, emacsStyleKeymap } from '@codemirror/commands';
|
||||
import { vim } from '@replit/codemirror-vim';
|
||||
import { indentUnit } from '@codemirror/language';
|
||||
import { Prec } from '@codemirror/state';
|
||||
|
||||
const configFromSettings = (settings: EditorSettings) => {
|
||||
const languageExtension = (() => {
|
||||
@ -56,7 +57,7 @@ const configFromSettings = (settings: EditorSettings) => {
|
||||
}
|
||||
|
||||
if (settings.keymap === EditorKeymap.Vim) {
|
||||
extensions.push(vim());
|
||||
extensions.push(Prec.high(vim()));
|
||||
} else if (settings.keymap === EditorKeymap.Emacs) {
|
||||
extensions.push(keymap.of(emacsStyleKeymap));
|
||||
}
|
||||
|
@ -91,3 +91,4 @@ activatable
|
||||
titlewrapper
|
||||
notyf
|
||||
Notyf
|
||||
Prec
|
Loading…
Reference in New Issue
Block a user