-
Notifications
You must be signed in to change notification settings - Fork 306
Servers lua
David Briscoe edited this page Jan 19, 2019
·
6 revisions
Get luarocks.
brew install luarocks
# or
scoop install luarocks # also requires visual studio in PATH for cl.exe
# or
sudo apt-get install luarocks
# etc
luarocks install --server=http://luarocks.org/dev lua-lsp
luarocks install luacheck # optional. for linting.
luarocks install Formatter # lua 5.1 only. optional. for code formatting.
luarocks install lcf # lua 5.3 only. optional. for code formatting.
if executable('lua-lsp')
au User lsp_setup call lsp#register_server({
\ 'name': 'lua-lsp',
\ 'cmd': {server_info->['lua-lsp']},
\ 'whitelist': ['lua'],
\ })
endif