playground update

neovim_0.7
ray-x 2 years ago
parent f0c5610a1f
commit 9ed6e64877

@ -18,7 +18,7 @@ There also three folder `js`, `go`, `py`. Those folder have some basic source co
The playground has js, py, go folder, so you can install either one your self in your PATH.
If you want to try lua, Please check sumneko setup in init.lua make sure it pointed to correct path. By default it
potint to ~/github/sumneko
potint to ~/github/sumneko if not existed in your PATH.
## run init.lua

@ -10,7 +10,7 @@ local sumneko_root_path = vim.fn.expand('$HOME') .. '/github/sumneko/lua-languag
local sumneko_binary = vim.fn.expand('$HOME') .. '/github/sumneko/lua-language-server/bin/macOS/lua-language-server'
local lua_cfg = {
cmd = { sumneko_binary, '-E', sumneko_root_path .. '/main.lua' },
-- cmd = { sumneko_binary, '-E', sumneko_root_path .. '/main.lua' },
settings = {
Lua = {
runtime = { version = 'LuaJIT', path = vim.split(package.path, ';') },
@ -19,6 +19,10 @@ local lua_cfg = {
},
}
if vim.fn.executable('lua-language-server') == 0 then
lua_cfg.cmd = { sumneko_binary, '-E', sumneko_root_path .. '/main.lua' }
end
local function load_plugins()
require('packer').startup({
function(use)

Loading…
Cancel
Save