aboutsummaryrefslogtreecommitdiff
path: root/atom/packages/vim-surround/lib/vim-surround.coffee
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2019-03-14 23:19:58 +0100
committerBen Beltran <ben@nsovocal.com>2019-03-14 23:19:58 +0100
commitb009b50e81b6c1d0d691505b5f5c0418f559bfc0 (patch)
tree5fae800e76219eba28634cb236565f9b4bb7a2f7 /atom/packages/vim-surround/lib/vim-surround.coffee
parent4efcafab7f0aa454f9ebe767133654bc9f44e12c (diff)
Remove Atom config
Diffstat (limited to 'atom/packages/vim-surround/lib/vim-surround.coffee')
-rw-r--r--atom/packages/vim-surround/lib/vim-surround.coffee45
1 files changed, 0 insertions, 45 deletions
diff --git a/atom/packages/vim-surround/lib/vim-surround.coffee b/atom/packages/vim-surround/lib/vim-surround.coffee
deleted file mode 100644
index f293194..0000000
--- a/atom/packages/vim-surround/lib/vim-surround.coffee
+++ /dev/null
@@ -1,45 +0,0 @@
-{CompositeDisposable} = require 'atom'
-
-Surround = require './command/surround'
-Delete = require './command/delete'
-Change = require './command/change'
-
-module.exports =
- config:
- pairs:
- type: 'array'
- default: ['()', '{}', '[]', '""', "''"]
- items:
- type: 'string'
- changeSurroundCommand:
- type: 'string'
- default: 'c s'
- deleteSurroundCommand:
- type: 'string'
- default: 'd s'
- surroundCommand:
- type: 'string'
- default: 's'
- deleteCommand:
- type: 'string'
- default: 'd s'
-
- activate: (state) ->
- @commandClasses = [
- Surround, Delete, Change
- ]
-
- @configLoop = atom.config.observe 'vim-surround', (config) =>
- @disposables.dispose() if @disposables?
- @disposables = new CompositeDisposable
-
- @commands = []
-
- for cls in @commandClasses
- command = new cls config
- @commands.push command
- @disposables.add command.disposables
-
- consumeVimMode: (vimMode) -> @vimMode = vimMode
-
- deactivate: () -> @disposables.dispose()