在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):EmmyLua/EmmyLua-LanguageServer开源软件地址(OpenSource Url):https://github.com/EmmyLua/EmmyLua-LanguageServer开源编程语言(OpenSource Language):Java 74.7%开源软件介绍(OpenSource Introduction):Emmy Lua Language Server
Emmy lua Language server have lots of features for lua language, including:
For an exhaustive list of features see the intellij plugin description. RequirementsBuildingRun from root:
The Running ServerTo run the language server use:
Adding to an SublimeJust pass the instantiating instruction to the LSP plugin. Example: adding EmmyLua to SublimeText with Sublime-LSP:
{
"clients":
{
"emmy":
{
"command":
[
"java",
"-cp",
"<path to jar>/*",
"com.tang.vscode.MainKt"
],
"enabled": true,
"languageId": "lua",
"scopes":
[
"source.lua"
],
"syntaxes":
[
"Packages/Lua/Lua.sublime-syntax"
]
}
}
} Adding to Emacsyou can use lsp-lua-emmy as lsp client. add following code to your (use-package lsp-mode
:ensure t
:commands lsp
:hook ((lua-mode) . lsp)
:config
)
(use-package company-lsp
:ensure t
:after lsp-mode
:config
(setq company-lsp-enable-recompletion t)
(setq lsp-auto-configure nil) ;该功能会自动执行(push company-lsp company-backends)
)
(use-package lsp-lua-emmy
:demand
:ensure nil
:load-path "~/github/lsp-lua-emmy"
:hook (lua-mode . lsp)
:config
(setq lsp-lua-emmy-jar-path (expand-file-name "EmmyLua-LS-all.jar" user-emacs-directory))
)
(defun set-company-backends-for-lua()
"Set lua company backend."
(setq-local company-backends '(
(
company-lsp
company-lua
company-keywords
company-gtags
company-yasnippet
)
company-capf
company-dabbrev-code
company-files
)))
(use-package lua-mode
:ensure t
:mode "\\.lua$"
:interpreter "lua"
:hook (lua-mode . set-company-backends-for-lua)
:config
(setq lua-indent-level 4)
(setq lua-indent-string-contents t)
(setq lua-prefix-key nil)
)
work with company-mode and lua-mode in Emacs 26.1: Adding to Vim/NeoVimInstall Vim-EasyComplete. Run |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论