debian-mirror-gitlab/app/assets/javascripts/ide/lib/editor_options.js

18 lines
332 B
JavaScript
Raw Normal View History

2018-05-09 12:01:36 +05:30
export const defaultEditorOptions = {
model: null,
readOnly: false,
contextmenu: true,
scrollBeyondLastLine: false,
minimap: {
enabled: false,
},
wordWrap: 'on',
};
export default [
{
2019-09-04 21:01:54 +05:30
readOnly: model => Boolean(model.file.file_lock),
2018-11-08 19:23:39 +05:30
quickSuggestions: model => !(model.language === 'markdown'),
2018-05-09 12:01:36 +05:30
},
];