Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
if-lua now includes io.*; remove workaround
  • Loading branch information
xolox committed Aug 12, 2010
1 parent 527e1b7 commit 5f3bdba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 11 additions & 1 deletion TODO.md
Expand Up @@ -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 changes: 1 addition & 7 deletions autoload.vim
Expand Up @@ -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
Expand Down

0 comments on commit 5f3bdba

Please sign in to comment.