diff options
author | 2011-01-17 15:50:06 -0500 | |
---|---|---|
committer | 2011-01-17 15:50:06 -0500 | |
commit | d196ce1c86c27e0b07b2ee537da07e362f44e784 (patch) | |
tree | 4b3e7cdadc82657d7d3a2aaef2b69beabfc5299c /modules/cpp/commands.lua | |
parent | 5b3d39a6ac36e344ae95666b6b60f3ee1d4e1057 (diff) | |
download | textadept-d196ce1c86c27e0b07b2ee537da07e362f44e784.tar.gz textadept-d196ce1c86c27e0b07b2ee537da07e362f44e784.zip |
Added Adeptsense.
Diffstat (limited to 'modules/cpp/commands.lua')
-rw-r--r-- | modules/cpp/commands.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/cpp/commands.lua b/modules/cpp/commands.lua index b18247ab..fef5255f 100644 --- a/modules/cpp/commands.lua +++ b/modules/cpp/commands.lua @@ -26,6 +26,7 @@ m_run.error_detail.c = { } -- C++-specific key commands. +local cppsense = _m.cpp.adeptsense.sense local keys = _G.keys if type(keys) == 'table' then keys.cpp = { @@ -38,6 +39,13 @@ if type(keys) == 'table' then buffer:add_text(';') buffer:new_line() end }, + [not OSX and 'c\n' or 'esc'] = { cppsense.complete, cppsense }, + ['\t'] = { function() + if string.char(buffer.char_at[buffer.current_pos - 1]) ~= '(' then + return false + end + return cppsense:show_apidoc() + end }, } end |