]> git.r.bdr.sh - rbdr/dotfiles/blame - atom/packages/relative-line-numbers/lib/relative-line-numbers.coffee
Adds editorconfig
[rbdr/dotfiles] / atom / packages / relative-line-numbers / lib / relative-line-numbers.coffee
CommitLineData
24c7594d
BB
1LineNumberView = require './line-number-view'
2
3module.exports =
4 # Config schema
5 config:
6 trueNumberCurrentLine:
7 type: 'boolean'
8 default: true
9 description: 'Show the true number on the current line'
10 showNormalLineNumbers:
11 type: 'boolean'
12 default: true
13 description: 'Show normal line numbers'
14
15 configDefaults:
16 trueNumberCurrentLine: true
17 showNormalLineNumbers: true
18
19 activate: (state) ->
20 console.log('Activiating relative line numbers.');
21 atom.workspace.observeTextEditors (editor) ->
22 new LineNumberView(editor)
23
24 deactive: () ->