Skip to content

Instantly share code, notes, and snippets.

@wilvk
Created February 15, 2020 12:45
Show Gist options
  • Save wilvk/c4302f1dde5216497585682d6e78496c to your computer and use it in GitHub Desktop.
Save wilvk/c4302f1dde5216497585682d6e78496c to your computer and use it in GitHub Desktop.
" begin vundle code
filetype plugin indent off
syntax off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Bundle 'nickspoons/vim-sharpenup'
Bundle 'puremourning/vimspector'
Bundle 'dense-analysis/ale'
Bundle 'RRethy/vim-illuminate'
Bundle 'inside/vim-search-pulse'
Bundle 'OmniSharp/omnisharp-vim'
Bundle 'tpope/vim-dispatch'
Bundle 'prabirshrestha/asyncomplete.vim'
Bundle 'tpope/vim-sensible'
call vundle#end()
filetype plugin indent on
syntax on
let g:OmniSharp_server_stdio = 1
nnoremap <C-o><C-u> :OmniSharpFindUsages<CR>
nnoremap <C-o><C-d> :OmniSharpGotoDefinition<CR>
nnoremap <C-o><C-d><C-p> :OmniSharpPreviewDefinition<CR>
nnoremap <C-o><C-r> :!dotnet run
" allow tab complete from omnisharp
inoremap <expr> <Tab> pumvisible() ? '<C-n>' :
\ getline('.')[col('.')-2] =~# '[[:alnum:].-_#$]' ? '<C-x><C-o>' : '<Tab>'
let g:OmniSharp_diagnostic_showid = 1
" optionally enable
"autocmd CursorHold *.cs OmniSharpGlobalCodeCheck
let g:sharpenup_codeactions=1
let g:sharpenup_codeactions_autocmd='CursorHold'
let g:sharpenup_codeactions_glyph='💡'
let g:sharpenup_codeactions_set_signcolumn=1
let g:sharpenup_map_prefix = ','
let g:vimspector_enable_mappings = 'HUMAN'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment