aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2021-11-18 16:40:34 +0100
committerGitHub <noreply@github.com>2021-11-18 10:40:34 -0500
commit463cbdea3bf58c15f6c68caeeca08d474ee50c06 (patch)
tree8bb773acc70d8d305134bcc65cfea46a0a81ecfd /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-463cbdea3bf58c15f6c68caeeca08d474ee50c06.tar
nvim-lspconfig-463cbdea3bf58c15f6c68caeeca08d474ee50c06.tar.gz
nvim-lspconfig-463cbdea3bf58c15f6c68caeeca08d474ee50c06.tar.bz2
nvim-lspconfig-463cbdea3bf58c15f6c68caeeca08d474ee50c06.tar.lz
nvim-lspconfig-463cbdea3bf58c15f6c68caeeca08d474ee50c06.tar.xz
nvim-lspconfig-463cbdea3bf58c15f6c68caeeca08d474ee50c06.tar.zst
nvim-lspconfig-463cbdea3bf58c15f6c68caeeca08d474ee50c06.zip
fix(julials): add language-specific root marker (#1442)
* Julia packages have a `Project.toml` in the root directory.
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/julials.lua4
1 files changed, 3 insertions, 1 deletions
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 = {