Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Light Table : parentheses are not auto-closing

I'm trying to edit Clojure/ClojureScript files on Light Table with paredit, but the Plugin does not seem to work. When I open a parenthesis, it is not closed.

However the plugin is installed as shows the plugins list.

Have I missed some configuration step, or is it a bug?

(At the time of writing, I just installed the last version and have not touched the config).

like image 537
Valentin Waeselynck Avatar asked Jan 10 '23 03:01

Valentin Waeselynck


1 Answers

Since version 0.7.0, auto-closing parens are no longer the default, because of some issues with international keyboards apparently. It is mentioned in this closed issue, as well as in the FAQ.

What I needed to do was add this form to the User behaviors configuration:

[:app :lt.objs.settings/pair-keymap-diffs]

To do so, I followed these steps:

  1. Ctrl-Space to open Commands
  2. Type "user behaviors" and click the proposed command
  3. This open a file that you can edit to add the above snippet.
like image 77
Valentin Waeselynck Avatar answered Feb 01 '23 02:02

Valentin Waeselynck