lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

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

Open wojciech-kulik opened this issue 1 year ago • 3 comments

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:

"workspace.library": ["${3rd}/luassert/library", "${VIMRUNTIME}/lua"],

wojciech-kulik avatar Mar 25 '24 11:03 wojciech-kulik

enable code completion for treesitter in Neovim

What do you mean precisely?

Akimcx avatar Mar 26 '24 12:03 Akimcx

To see LSP code completion, help, etc. for types related to vim.treesitter and also to avoid warnings. By default LSP doesn't know anything about the treesitter until I provide paths to its definition.

wojciech-kulik avatar Mar 26 '24 12:03 wojciech-kulik

Maybe the question is too much related to Neovim. But a general question would be how to pass environment variables in .luarc.json to the field workspace.library

wojciech-kulik avatar Mar 26 '24 12:03 wojciech-kulik