Giter Site home page Giter Site logo

company-lua's People

Contributors

marsam avatar ptrv avatar syohex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

company-lua's Issues

LOVE interpreter

Hi,

The backend works great for the standard library. I'm having some trouble getting it to autocomplete the LOVE apis. I've changed the variable company-lua-interpreter to be love but its not working. Am I missing some other configuration?

Active lua process when there is no lua interpreter

System Information

  • OS: NixOS 16.03
  • Emacs 24.5.2 from the official stable nixpkgs channel
  • company 20160429.1339 from MELPA
  • company-lua 20160330.313 from MELPA

Steps to reproduce

  • Don't have lua interpreter installed on your system :) (well, at least (executable-find "lua") should return nil for your currently running instance of Emacs)
  • Have company and company-lua configured like that: company-rc.el
  • Start Emacs
  • M-x find-file RET ~/khooy.lua RET
  • M-x company-complete RET
  • C-x C-c

Observed

Emacs says that there are active processes. And one of them is the lua process.

Expected

IMO Emacs should quit clearly.

Commentary

Well, I think I actually know why this happens. This is because when the user doesn't have the lua interpreter we put nil as the PROGRAM argument of the start-process function at company-lua.el#L83. And the docs say:

PROGRAM is the program file name. It is searched for in exec-path (which see). If nil, just associate a pty with the buffer. Remaining arguments are strings to give program as arguments.

This is probably what happens in our case. The question is what do we have to do when the lua interpreter is missing? Just silently do nothing or say "Hey! You don't have lua. Please install it to autocomplete things" somewhere in the *Messages*? I'd like to go with the second option. :)

This plugin does not seem to work

Hi,

I've installed this plugin with M-x package-install and for some reason in Spacemacs and plain old Emacs no auto-completions are provided. Typing in math.p doesn't offer any completions, let alone the one I'm hoping for math.pi. Same with math.si, doesn't lead to any completions let alone the one I want, math.sin.

Thanks for your time,
Brenton

Can't work.

company-begin-backend: Cannot complete at point.
My interpreter:
image

When I type table.rem and get this below.

company-diag

Emacs 25.2.1 (i686-w64-mingw32) of 2017-04-25 on LAPHROAIG
Company 0.9.0

company-backends: (company-lua company-ycmd company-yasnippet)

Used backend: company-lua
Prefix: (#("rem" 0 3
(fontified t))
. t)

Completions: none

How to support other Lua libs?

I have lots of Lua APIs, how could I generate file like https://github.com/ptrv/company-lua/blob/master/lua/api/love2d.lua?

Is there any scripts to do this?

If there is a easy way to support other Lua libs, it would be pretty awesome! ๐Ÿ˜„

Thanks.

local variable completion is invalid

After add the company-lua. Then the default function of company is invalid.If I define a local variable "mytable" then type "my" string cannot get any completion candidates.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.