We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad05db3 commit fdae9ecCopy full SHA for fdae9ec
init.lua
@@ -24,9 +24,6 @@ end
24
25
textadept.file_types.extensions.rs = 'rust'
26
textadept.editing.comment_string.rust = '//'
27
-textadept.editing.char_matches.rust = {
28
- [40] = ')', [91] = ']', [123] = '}', [34] = '"'
29
-}
30
31
-- compiler
32
textadept.run.compile_commands.rust = 'cargo build'
@@ -43,8 +40,12 @@ end
43
40
keys.rust = _keys
44
41
45
42
events.connect(events.LEXER_LOADED, function (lang)
46
- if lang ~= 'rust' then return end
+ if lang ~= 'rust' then
+ textadept.editing.auto_pairs[39] = "'" -- re-enable single quote
+ return
+ end
47
48
+ textadept.editing.auto_pairs[39] = nil -- single quote
49
buffer.tab_width = 4
50
buffer.use_tabs = false
51
buffer.edge_column = 99
0 commit comments