Skip to content

Commit

Permalink
docs: remove outdated root pattern references (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlbach authored Apr 10, 2022
1 parent 5851881 commit b747b20
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/cmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://github.com/regen100/cmake-language-server
CMake LSP Implementation
]],
default_config = {
root_dir = [[root_pattern(".git", "compile_commands.json", "build") or dirname]],
root_dir = [[root_pattern(".git", "compile_commands.json", "build")]],
},
},
}
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/crystalline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ https://github.com/elbywan/crystalline
Crystal language server.
]],
default_config = {
root_dir = [[root_pattern('shard.yml', '.git') or dirname]],
root_dir = [[root_pattern('shard.yml', '.git')]],
},
},
}
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/dhall_lsp_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cabal install dhall-lsp-server
prebuilt binaries can be found [here](https://github.com/dhall-lang/dhall-haskell/releases).
]],
default_config = {
root_dir = [[root_pattern(".git") or dirname]],
root_dir = [[root_pattern(".git")]],
},
},
}
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/lean3ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ that plugin fully handles the setup of the Lean language server,
and you shouldn't set up `lean3ls` both with it and `lspconfig`.
]],
default_config = {
root_dir = [[root_pattern("leanpkg.toml") or root_pattern(".git") or path.dirname]],
root_dir = [[root_pattern("leanpkg.toml") or root_pattern(".git")]],
},
},
}
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/rome.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ npm install [-g] rome
```
]],
default_config = {
root_dir = [[root_pattern('package.json', 'node_modules', '.git') or dirname]],
root_dir = [[root_pattern('package.json', 'node_modules', '.git')]],
},
},
}
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/scry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ https://github.com/crystal-lang-tools/scry
Crystal language server.
]],
default_config = {
root_dir = [[root_pattern('shard.yml', '.git') or dirname]],
root_dir = [[root_pattern('shard.yml', '.git')]],
},
},
}
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/zls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ https://github.com/zigtools/zls
Zig LSP implementation + Zig Language Server
]],
default_config = {
root_dir = [[util.root_pattern("zls.json", ".git") or current_file_dirname]],
root_dir = [[util.root_pattern("zls.json", ".git")]],
},
},
}

0 comments on commit b747b20

Please sign in to comment.