]> git.r.bdr.sh - rbdr/dotfiles/blame - atom/packages/vim-mode/lib/settings.coffee
Update atoms
[rbdr/dotfiles] / atom / packages / vim-mode / lib / settings.coffee
CommitLineData
24c7594d
BB
1
2settings =
3 config:
4 startInInsertMode:
5 type: 'boolean'
6 default: false
7 useSmartcaseForSearch:
8 type: 'boolean'
9 default: false
10 wrapLeftRightMotion:
11 type: 'boolean'
12 default: false
13 useClipboardAsDefaultRegister:
14 type: 'boolean'
15 default: false
16 numberRegex:
17 type: 'string'
18 default: '-?[0-9]+'
19 description: 'Use this to control how Ctrl-A/Ctrl-X finds numbers; use "(?:\\B-)?[0-9]+" to treat numbers as positive if the minus is preceded by a character, e.g. in "identifier-1".'
20
21Object.keys(settings.config).forEach (k) ->
22 settings[k] = ->
23 atom.config.get('vim-mode.'+k)
24
25settings.defaultRegister = ->
26 if settings.useClipboardAsDefaultRegister() then '*' else '"'
27
28module.exports = settings