diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-08-24 10:29:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-24 10:29:36 -0400 |
| commit | 4d6d10664cf0a53082c6533cf5c083ffd58e089b (patch) | |
| tree | a5bd463bf669045b4e4fd4624048f8371e9bdf42 /lua | |
| parent | chore: remove modeline (#1177) (diff) | |
| download | nvim-lspconfig-4d6d10664cf0a53082c6533cf5c083ffd58e089b.tar nvim-lspconfig-4d6d10664cf0a53082c6533cf5c083ffd58e089b.tar.gz nvim-lspconfig-4d6d10664cf0a53082c6533cf5c083ffd58e089b.tar.bz2 nvim-lspconfig-4d6d10664cf0a53082c6533cf5c083ffd58e089b.tar.lz nvim-lspconfig-4d6d10664cf0a53082c6533cf5c083ffd58e089b.tar.xz nvim-lspconfig-4d6d10664cf0a53082c6533cf5c083ffd58e089b.tar.zst nvim-lspconfig-4d6d10664cf0a53082c6533cf5c083ffd58e089b.zip | |
fix(omnisharp): pass source dir to cmd (#1178)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/omnisharp.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/lspconfig/omnisharp.lua b/lua/lspconfig/omnisharp.lua index 569b6f7c..1fcb4f64 100644 --- a/lua/lspconfig/omnisharp.lua +++ b/lua/lspconfig/omnisharp.lua @@ -8,6 +8,12 @@ configs[server_name] = { root_dir = function(fname) return util.root_pattern '*.sln'(fname) or util.root_pattern '*.csproj'(fname) end, + 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, init_options = {}, }, -- on_new_config = function(new_config) end; |
