aboutsummaryrefslogtreecommitdiffstats
path: root/CONFIG.md
diff options
context:
space:
mode:
authorgithub-actions <github-actions@github.com>2021-08-24 14:30:16 +0000
committergithub-actions <github-actions@github.com>2021-08-24 14:30:16 +0000
commit38eb8ea6bc669082d4709095c9563922e025debb (patch)
tree6daca79f9d2bd1e631a9a0304efefde9c4f9fd2f /CONFIG.md
parentfix(omnisharp): pass source dir to cmd (#1178) (diff)
downloadnvim-lspconfig-38eb8ea6bc669082d4709095c9563922e025debb.tar
nvim-lspconfig-38eb8ea6bc669082d4709095c9563922e025debb.tar.gz
nvim-lspconfig-38eb8ea6bc669082d4709095c9563922e025debb.tar.bz2
nvim-lspconfig-38eb8ea6bc669082d4709095c9563922e025debb.tar.lz
nvim-lspconfig-38eb8ea6bc669082d4709095c9563922e025debb.tar.xz
nvim-lspconfig-38eb8ea6bc669082d4709095c9563922e025debb.tar.zst
nvim-lspconfig-38eb8ea6bc669082d4709095c9563922e025debb.zip
[docgen] Update CONFIG.md
skip-checks: true
Diffstat (limited to 'CONFIG.md')
-rw-r--r--CONFIG.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/CONFIG.md b/CONFIG.md
index 88dd2477..679b2efe 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -3958,6 +3958,12 @@ require'lspconfig'.omnisharp.setup{}
Default Values:
filetypes = { "cs", "vb" }
init_options = {}
+ on_new_config = function(new_config, new_root_dir)
+ if new_root_dir then
+ table.insert(new_config.cmd, '-s')
+ table.insert(new_config.cmd, new_root_dir)
+ end
+ end,
root_dir = root_pattern(".sln") or root_pattern(".csproj")
```