You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Go to the Downloads directory.cd Downloads
# Extract the file to a specific folder.
mkdir lua-language-server && tar -xzf <file-name>.tar.gz -C ./lua-language-server
Move the file to the /opt directory.
# Move the folder.
sudo mv lua-language-server /opt/
Executing the binary file.
# Calling the language server.
/opt/lua-language-server/bin/lua-language-server
Example in neovim init.lua.
-- LUA CONFIGURATIONlspconfig.lua_ls.setup {
cmd= { "/opt/lua-language-server/bin/lua-language-server" },
settings= {
Lua= {
diagnostics= {
-- Get the language server to recognize the `vim` globalglobals= {'vim'},
},
},
},
}