From fb8d5eed2cf90c97be763d01f224d14e8854a1b7 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Thu, 2 Jun 2022 17:11:47 +0200 Subject: nvim: omnisharp lsp setup for unity game dev --- .config/nvim/lua/setup/lspconfig.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/setup/lspconfig.lua b/.config/nvim/lua/setup/lspconfig.lua index 9d56e84..f025d4a 100644 --- a/.config/nvim/lua/setup/lspconfig.lua +++ b/.config/nvim/lua/setup/lspconfig.lua @@ -24,6 +24,14 @@ lspconfig.rust_analyzer.setup { on_attach = on_attach, } +-- local pid = vim.fn.getpid() +-- local omnisharp_bin = "mono /home/adam/.local/share/nvim/lsp_servers/omnisharp/omnisharp-mono/OmniSharp.exe" +lspconfig.omnisharp.setup { + use_mono = true, + on_attach = on_attach, + -- cmd = { omnisharp_bin, "--languageserver", "--hostPID", tostring(pid) }, +} + -- vim.cmd("let g:tex_flavor = 'tex'") -- lspconfig.texlab.setup { -- on_attach = on_attach, -- cgit v1.2.3-70-g09d2