~hristoast/company-openmw-lua

A company backend for completing the OpenMW-Lua API.

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~hristoast/company-openmw-lua
read/write
git@git.sr.ht:~hristoast/company-openmw-lua

You can also use your local clone with git send-email.

#company-openmw-lua.el

A company backend for completing the OpenMW-Lua API.

#Installation

Via striaght.el and use-package:

(use-package company-openmw-lua
  :defer t
  :straight
  (company-openmw-lua
   :type git
   :host nil
   :repo "https://git.sr.ht/~hristoast/company-openmw-lua")
  ;; Hooking into lua-mode and fennel-mode is optional but recommended.
  :hook ((lua-mode . (lambda ()
                       (progn
                         (setq-local company-backends
                                     '((company-lua
                                        company-openmw-lua
                                        company-keywords
                                        company-gtags
                                        company-yasnippet)
                                       company-capf
                                       company-dabbrev-code
                                       company-files)))))
         (fennel-mode . (lambda ()
                          (progn
                            (setq-local company-backends
                                        '((company-openmw-lua
                                           company-keywords
                                           company-gtags
                                           company-yasnippet)
                                          company-capf
                                          company-dabbrev-code
                                          company-files)))))))

#Generating Keywords

The included generate-keywords.py script should be used to generate the keywords list.