From b4437d0fb741bf5d1a2e803391453793bfd28ad0 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 24 Jun 2011 17:45:22 -0400 Subject: Strip '_G' from Lua Adeptsense symbols and remove duplicate tags. --- modules/lua/init.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/lua/init.lua') diff --git a/modules/lua/init.lua b/modules/lua/init.lua index 198aed3c..f689867f 100644 --- a/modules/lua/init.lua +++ b/modules/lua/init.lua @@ -69,6 +69,11 @@ sense.ctags_kinds = { } sense:load_ctags(_HOME..'/modules/lua/tags', true) +-- Strips '_G' from symbols since it's implied. +function sense:get_class(symbol) + return self.super.get_class(self, symbol:gsub('_G%.?', '')) +end + -- Shows an autocompletion list for the symbol behind the caret. -- If the symbol contains a ':', only display functions. Otherwise, display -- both functions and fields. -- cgit v1.2.3