Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

if-lua now includes io.*; remove workaround

  • Loading branch information...
commit 5f3bdbafcc5258487e94cf55dae9cde5374d97d1 1 parent 527e1b7
Peter Odding authored
Showing with 12 additions and 8 deletions.
  1. +11 −1 TODO.md
  2. +1 −7 autoload.vim
12 TODO.md
View
@@ -3,4 +3,14 @@
* OMNI completion for in scope variables (including display of library function signatures).
* Document g:lua_inspect_path option.
* Check whether "core/SciTE: jump to definition now supports functions in different files." is interesting.
- * Use the new 'init.get_variable_details' function to replace most of actions.tooltip()?
+ * Use the new 'init.get_variable_details' function to replace most of actions.tooltip()? Can't do this until the references to `buffer` and `editor` are removed:
+ if ast.localmasking then
+ info = info .. "masking "
+ local fpos = LA.ast_pos_range(ast.localmasking, buffer.tokenlist)
+ if fpos then
+ local linenum0 = editor:LineFromPosition(fpos)
+ info = info .. "definition at line " .. (linenum0+1) .. " "
+ end
+ end
+ * Bug: Argument count warning tool tips are only shown for parts of the highlighted text.
+ * Bug: The plug-in warns `Invalid output from luainspect4vim.lua: 'This is an unknown table field.'`. Mixup between tool tip / highlight response parsing?!
8 autoload.vim
View
@@ -125,13 +125,7 @@ function! s:parse_text(input, search_path) " {{{1
endtry
else
redir => output
- silent lua << EOF
- if io == nil then
- -- The Lua interface for Vim previously didn't include io.*!
- io = { type = function() end }
- end
- require 'luainspect4vim' (vim.eval 'a:input')
-EOF
+ silent lua require 'luainspect4vim' (vim.eval 'a:input')
redir END
let b:luainspect_output = split(output, "\n")
endif
Please sign in to comment.
Something went wrong with that request. Please try again.