LuaLS / LuaLS/lua-language-server

How to link to treesitter folder from `workspace.library`?

Open
#2,582 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

Hi!

I'm using `.luarc.json` file to define `workspace.library` and I need to enable code completion for treesitter in Neovim. How can I do that?

I'm trying something like that:
```json
"workspace.library": ["${3rd}/luassert/library", "${VIMRUNTIME}/lua"],
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the `.luarc.json` `workspace.library` setting and the `${3rd}/luassert/library` and `${VIMRUNTIME}/lua` entries shown in the issue. Determine how a treesitter folder should be represented, then document the supported configuration or limitation with a working example.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.