diff options
author | 2020-07-13 14:31:15 -0400 | |
---|---|---|
committer | 2020-07-13 14:31:15 -0400 | |
commit | 5e2d3b835867311aafd8a8e89dc227c0a92cedab (patch) | |
tree | 7c1dee95a729491e277fc2ed4bc33cc9b0c1e57a | |
parent | 1e278dce5dab93b73a3699aa2cc54fa6db11f34f (diff) | |
download | textadept-5e2d3b835867311aafd8a8e89dc227c0a92cedab.tar.gz textadept-5e2d3b835867311aafd8a8e89dc227c0a92cedab.zip |
Make `lexer` global by default when it's available.
-rw-r--r-- | init.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -337,6 +337,7 @@ events.connect(events.BUFFER_NEW, function() buffer:private_lexer_call(LOADLEXERLIBRARY, _HOME .. '/lexers') load_settings() buffer:private_lexer_call(SETLEXERLANGUAGE, 'text') + if not _G.lexer then _G.lexer = require('lexer') end if buffer == ui.command_entry then ui.command_entry.caret_line_visible = false end |