Skip to content

Commit

Permalink
Add OmniSharp for dotnet support
Browse files Browse the repository at this point in the history
This uses the .NET 6 (and above) native .NET, rather than configuring
Mono. To do this, we need to configure OmniSharp and also ensure
`DOTNET_ROOT` is set correctly for everything to work.

OmniSharp/omnisharp-vim#832
https://stackoverflow.com/a/72225758
https://stackoverflow.com/a/73896444
  • Loading branch information
nickcharlton committed Dec 11, 2023
1 parent a4059ac commit 08c9515
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ cask "bartender"
cask "choosy"
cask "chromedriver"
cask "datagrip"
cask "dotnet-sdk"
cask "fantastical"
cask "font-jetbrains-mono-nerd-font"
cask "google-chrome"
Expand Down
1 change: 1 addition & 0 deletions vim/ftplugin/cs.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let g:OmniSharp_server_use_net6 = 1
4 changes: 3 additions & 1 deletion vimrc.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ let g:has_async = v:version >= 800 || has('nvim')
call plug#begin('~/.vim/bundle')

" Define bundles via Github repos
Plug 'OmniSharp/omnisharp-vim'
Plug 'airblade/vim-gitgutter'
Plug 'bogado/file-line'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'dense-analysis/ale'
Plug 'janko-m/vim-test'
Plug 'jeffkreeftmeijer/vim-dim'
Plug 'mattn/vim-lsp-settings'
Plug 'pbrisbin/vim-mkdir'
Plug 'nickcharlton/vim-pandoc-syntax', { 'branch': 'neovim-compat' }
Plug 'nickspoons/vim-sharpenup'
Plug 'pbrisbin/vim-mkdir'
Plug 'prabirshrestha/asyncomplete-file.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'prabirshrestha/asyncomplete.vim'
Expand Down
3 changes: 3 additions & 0 deletions zsh/configs/post/exports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

# dotnet
export DOTNET_ROOT=/usr/local/share/dotnet

0 comments on commit 08c9515

Please sign in to comment.