summaryrefslogtreecommitdiff
path: root/test/lsp/test_lsp_root_detection.vader
AgeCommit message (Collapse)Author
2021-03-01#3599 - Use ale_root instead of ale_lsp_rootw0rp
The `ale_lsp_root` setting is now deprecated, and `ale_root` should be used instead. The setting will be used for both setting the root easily for LSP linters, and for running other linters over whole projects.
2019-05-20Try to fix the testsw0rp
2019-02-22#2132 - Replace all uses of foo_callback with foow0rp
2019-01-26Add additional ways to detect LSP project rootbrian m. carlson
Currently, we detect the linter root based on a variety of techniques. However, these techniques are not foolproof. For example, clangd works fine for many things without a compile_commands.json file, and Go projects may be built outside of the GOPATH to take advantage of Go 1.11's automatic module support. Add global and buffer-specific variables to allow the user to specify the root, either as a string or a funcref. Make the funcrefs accept the buffer number as an argument to make sure that they can function easily in an asynchronous environment. We define the global variable in the main plugin, since the LSP linter code is not loaded unless required, and we want the variable to be able to be read correctly by :ALEInfo regardless.