diff options
Diffstat (limited to 'modules/lua/init.lua')
-rw-r--r-- | modules/lua/init.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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. |