2015-12-21 51 views
1

我已經爲人物"({[及其對應物(重要注意事項:我使用德語鍵盤佈局)爲Light Table設置了自動配對。這是通過將[:app :lt.objs.settings/pair-keymap-diffs]我的用戶行爲做了(確實爲"的伎倆)和LightTable中的自動配對

[:editor "alt-[" (:editor.open-pair "[")] 
[:editor "alt-{" (:editor.open-pair "{")] 
[:editor "alt-]" (:editor.close-pair "]")] 
[:editor "alt-}" (:editor.close-pair "}")] 

到我的用戶的鍵盤佈局。當我現在鍵入{時,插入到編輯器中的是[]。我如何正確設置它?提前致謝。

回答

1

正確答案請參見this github issue。我從我的鍵盤佈局除去上面的代碼,而是下面的代碼添加到我的行爲:

;; Normal brackets autoclose 
[:app :lt.objs.editor/load-addon ["edit/closebrackets.js"]] 
[:editor :lt.objs.editor/set-codemirror-flags {:autoCloseBrackets true}] 

您可能需要刪除lighttable自動關閉插件:

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