Skip to content

Commit 3d8dd1b

Browse files
committed
Add support for Julia environment inside a subdirectory
`lsp-mode` overrides default directory to be the project root directory upon start so that a Julia environment residing in a subdirectory won't be picked up. A better alternative could be just start looking for an environment root starting from the current file if available.
1 parent 809da95 commit 3d8dd1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lsp-julia.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ body."
252252
"Get the (Julia) project root directory of the current file."
253253
(concat "\""
254254
(expand-file-name
255-
(or (locate-dominating-file default-directory "Project.toml")
256-
(locate-dominating-file default-directory "JuliaProject.toml")
255+
(or (locate-dominating-file buffer-file-name "Project.toml")
256+
(locate-dominating-file buffer-file-name "JuliaProject.toml")
257257
lsp-julia-default-environment))
258258
"\""))
259259

0 commit comments

Comments
 (0)