- https://github.com/sumneko/lua-language-server
- https://github.com/CppCXY/EmmyLuaCodeStyle
# FMT
wget https://github.com/CppCXY/EmmyLuaCodeStyle/releases/latest/download/linux-x64.tar.gz
rm lua-formater -r
tar zxvf linux-x64.tar.gz
mv linux-x64 lua-formater
# LSP
# 需要修改版本号
wget https://github.91chi.fun/https://github.com//sumneko/lua-langua
ge-server/releases/latest/download/lua-language-server-3.3.1-linux-x64.tar.gz
rm lua-lsp -r
mkdir lua-lsp
tar zxvf lua-language-server-3.3.1-linux-x64.tar.gz -C lua-lsp
# 添加到环境
# ln -s /download/lua-lsp/bin/lua-language-server /usr/local/bin/lua-language-server
# ln -s /download/lua-formater/bin/CodeFormat /usr/local/bin/luafmt
# luafmt check -w . -d
# luafmt format -w . -d
# 项目根目录创建 .editorconfig 文件
[*.lua]
indent_size = 2
continuation_indent_size = 2