]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/relative-line-numbers/lib/relative-line-numbers.coffee
Remove old logs
[rbdr/dotfiles] / atom / packages / relative-line-numbers / lib / relative-line-numbers.coffee
1 LineNumberView = require './line-number-view'
2
3 module.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: () ->