diff options
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 |