debian-mirror-gitlab/app/assets/javascripts/ide/lib/editor_options.js
2019-09-04 21:01:54 +05:30

17 lines
332 B
JavaScript

export const defaultEditorOptions = {
model: null,
readOnly: false,
contextmenu: true,
scrollBeyondLastLine: false,
minimap: {
enabled: false,
},
wordWrap: 'on',
};
export default [
{
readOnly: model => Boolean(model.file.file_lock),
quickSuggestions: model => !(model.language === 'markdown'),
},
];