josa42 / coc-lua

Lua language server extension using lua-lsp for coc.nvim.
MIT License
134 stars 5 forks source link

Failed to start server lua #86

Closed holiq closed 2 years ago

holiq commented 2 years ago

I'm trying to install coc-lua on neovim in termux, when I open the lua file I get a response like in the picture, and this my config

" init.vim
let g:coc_global_extensions=['coc-lua']
// coc-setting.json
{
    lua.enable: true,
    lua.trace.server: messages
}

Screenshot_20220626-182851_Termux

holiq commented 2 years ago

Solved, in termux has package lua-language-server so i have install that

pkg install lua-language-server

And I set manually on coc-setting


{
  "languageserver": {
    "lua": {
      "command": "lua-language-server",
      "filetypes": ["lua"]
    }
  }
}