From fe4b85f8fe479a11e53d8faaf2944a0695fbc9fd Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Mon, 1 Nov 2021 20:18:08 +0100 Subject: Nvim + omnisharp working with Unity --- .config/nvim/lua/opts.lua | 2 +- Applications/Unity/nvim-unity | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 Applications/Unity/nvim-unity diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua index aa56f76..e6957f4 100644 --- a/.config/nvim/lua/opts.lua +++ b/.config/nvim/lua/opts.lua @@ -73,7 +73,7 @@ require 'lspconfig'.omnisharp.setup { on_attach = function(_, bufnr) vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') end, - cmd = { "/usr/bin/omnisharp", "--languageserver" , "--hostPID", tostring(pid) }, + cmd = { "/home/adam/.cache/yay/omnisharp-roslyn/omnisharp", "--languageserver" , "--hostPID", tostring(pid) }, } -- LUA diff --git a/Applications/Unity/nvim-unity b/Applications/Unity/nvim-unity new file mode 100755 index 0000000..caa75a5 --- /dev/null +++ b/Applications/Unity/nvim-unity @@ -0,0 +1,3 @@ +#!/bin/bash + +alacritty -e nvr --servername unity $@ -- cgit v1.2.3-70-g09d2