aboutsummaryrefslogtreecommitdiff
path: root/properties.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-09-18 21:41:26 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-09-18 21:41:26 -0400
commitf1c197995bf34b604df0bfe17c71bcf352a91d83 (patch)
tree354250cde6874120c6cd6fc7c8e7288d6c84b723 /properties.lua
parent56dc0a689aaa9a7d054448c732c31bf57f640aaf (diff)
downloadtextadept-f1c197995bf34b604df0bfe17c71bcf352a91d83.tar.gz
textadept-f1c197995bf34b604df0bfe17c71bcf352a91d83.zip
Refactored snippets to use indicators instead of ugly placeholder text.
Diffstat (limited to 'properties.lua')
-rw-r--r--properties.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/properties.lua b/properties.lua
index c534b57b..a4f481d8 100644
--- a/properties.lua
+++ b/properties.lua
@@ -131,6 +131,9 @@ buffer:brace_highlight_indicator(not CURSES, INDIC_BRACEMATCH)
local INDIC_HIGHLIGHT = textadept.editing.INDIC_HIGHLIGHT
buffer.indic_style[INDIC_HIGHLIGHT] = buffer.INDIC_ROUNDBOX
if not CURSES then buffer.indic_under[INDIC_HIGHLIGHT] = true end
+local INDIC_PLACEHOLDER = textadept.snippets.INDIC_PLACEHOLDER
+buffer.indic_style[INDIC_PLACEHOLDER] = not CURSES and buffer.INDIC_DOTBOX or
+ buffer.INDIC_STRAIGHTBOX
-- Autocompletion.
--buffer.auto_c_separator =