uros-5 / jinja-lsp

Language Server for jinja
https://crates.io/crates/jinja-lsp
MIT License
93 stars 1 forks source link

Multiple backend directories not generally usable #30

Open ivanterrible opened 1 month ago

ivanterrible commented 1 month ago

In the configuration of your backend directory (for example using neovim) if you provide multiple directories the LSP will only function if all of the directories exist. If for example you specify:

backend = { './src_one', './src_two' }

If one of those directories does not exist, nothing works. If working on projects that are structured differently you cannot set a global backend value that will work with both. Given the setting I was expecting that the LSP would look into the specified directory if it is found, otherwise if the directory does not exist ignore it, as opposed to requiring all directories to exist.

uros-5 commented 2 weeks ago

Yeah true. I was thinking about moving configuration to: pyproject.toml, Cargo.toml, jinja-lsp.toml.