Skip to content

Commit

Permalink
Pass tabLength from Atom Settings to ide-mode to steer indendation
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Klink committed Sep 4, 2018
1 parent e3422ab commit 7f015f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/idris-ide-mode.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ class IdrisIdeMode extends EventEmitter
else
[]

tabLength = atom.config.get('editor.tabLength', scope: ['source.idris'])
configParams = ['--ide-mode', '--indent-with=' + tabLength,
'--indent-clause=' + tabLength]

parameters =
['--ide-mode'].concat pkgs, options
configParams.concat pkgs, options

options =
if compilerOptions.src
Expand Down

0 comments on commit 7f015f8

Please sign in to comment.