From 463cbdea3bf58c15f6c68caeeca08d474ee50c06 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 18 Nov 2021 16:40:34 +0100 Subject: fix(julials): add language-specific root marker (#1442) * Julia packages have a `Project.toml` in the root directory. --- lua/lspconfig/julials.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/julials.lua b/lua/lspconfig/julials.lua index 75acf07f..98ca2931 100644 --- a/lua/lspconfig/julials.lua +++ b/lua/lspconfig/julials.lua @@ -48,7 +48,9 @@ configs.julials = { new_config.cmd_cwd = root_dir end, filetypes = { 'julia' }, - root_dir = util.find_git_ancestor, + root_dir = function(fname) + return util.root_pattern 'Project.toml'(fname) or util.find_git_ancestor(fname) + end, single_file_support = true, }, docs = { -- cgit v1.2.3-70-g09d2