|
|
|
@ -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)
|
|
|
|
|