clojurelighttable

How to disable brackets auto closing in light table?


I start to use Light Table IDE for Clojure programming , but I can not find way to disable brackets auto closing. I suppose that something must be added to the user.behaviors file but I can not find what exactly.


Solution

  • This can be disabled in the user.keymap file. By default you have a map entry for adding keymappings (:+). To remove keymappings you need to add one for removing keymappings (:-). Something like this:

    :- {:app {}

    :editor.keys.normal {
                         "[" [(:editor.open-pair "[")]
                         "{" [(:editor.open-pair "{")]
                         }
    
    
    }
    

    Add more lines for other behaviours you would like to remove (open-pair, close-pair ...). Look in default.keymap to see what has been set up in :editor.keys.normal.