diff options
| author | Vincent Labelle <40727826+vincentlabelle@users.noreply.github.com> | 2025-12-14 14:01:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-14 14:01:17 -0500 |
| commit | b3a31fd3b6702de9c71c27212ffacf0f54cc3b46 (patch) | |
| tree | 2ee5417aef0d4b44211a32b68411fb70903d8705 | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-b3a31fd3b6702de9c71c27212ffacf0f54cc3b46.tar nvim-lspconfig-b3a31fd3b6702de9c71c27212ffacf0f54cc3b46.tar.gz nvim-lspconfig-b3a31fd3b6702de9c71c27212ffacf0f54cc3b46.tar.bz2 nvim-lspconfig-b3a31fd3b6702de9c71c27212ffacf0f54cc3b46.tar.lz nvim-lspconfig-b3a31fd3b6702de9c71c27212ffacf0f54cc3b46.tar.xz nvim-lspconfig-b3a31fd3b6702de9c71c27212ffacf0f54cc3b46.tar.zst nvim-lspconfig-b3a31fd3b6702de9c71c27212ffacf0f54cc3b46.zip | |
fix(omnisharp): "*.slnx" root marker #4236
Problem:
Root detection doesn't support the new solution file format which is
now the default in .NET 10.
Solution:
Add '*.slnx' to root_dir function.
| -rw-r--r-- | lsp/omnisharp.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lsp/omnisharp.lua b/lsp/omnisharp.lua index 6011a251..adaf4d79 100644 --- a/lsp/omnisharp.lua +++ b/lsp/omnisharp.lua @@ -30,7 +30,8 @@ return { root_dir = function(bufnr, on_dir) local fname = vim.api.nvim_buf_get_name(bufnr) on_dir( - util.root_pattern '*.sln'(fname) + util.root_pattern '*.slnx'(fname) + or util.root_pattern '*.sln'(fname) or util.root_pattern '*.csproj'(fname) or util.root_pattern 'omnisharp.json'(fname) or util.root_pattern 'function.json'(fname) |
