Re: [textadept] Adeptsense for other languages

From: Robert <ro....at.web.de>
Date: Thu, 17 Feb 2011 16:43:17 +0100

On Thu, Feb 17, 2011 at 3:53 PM, mitchell <c....at.caladbolg.net> wrote:
> Robert,
>
>> why is the ctags format for the output of the Lua files emulated?
>
> Because ctags support for Lua is awful.
>
>> Can
>> I try to write directly to the "sense" table if ctags support is
>> difficult?
>
> Yes of course.
>
> sense.completions = {
>  ['class'] = { functions = {}, fields = {} },
>  ...
> }
>
> is the general format. Let me know if you have any other questions. I hope
> this helps.
>
> mitchell
>
> --

Thanks,
so I can do
_m.lua.adeptsense.sense.completions['b'] =
_m.lua.adeptsense.sense.completions['buffer']
to get autocompletion after I did
local b = buffer

Should be possible to loop over variable declarations and require
statements to get autocompletions for those cases as well, e.g.
local m_snapopen = _m.textadept.snapopen

What would be a good point to do this? After each save, on demand with
a key command?

Robert
Received on Thu 17 Feb 2011 - 10:43:17 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:59:58 EST