From d196ce1c86c27e0b07b2ee537da07e362f44e784 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 17 Jan 2011 15:50:06 -0500 Subject: Added Adeptsense. --- modules/cpp/commands.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/cpp/commands.lua') 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 -- cgit v1.2.3