liuchengxu / space-vim

:four_leaf_clover: Lean & mean spacemacs-ish Vim distribution
https://liuchengxu.github.io/space-vim/
MIT License
2.85k stars 255 forks source link

Add C# language layer #505

Closed rene-descartes2021 closed 1 year ago

rene-descartes2021 commented 1 year ago

Adds OmniSharp-vim for C# language. Predates the advent of LSP, and at present has more features than using an LSP client and OmniSharp-Rosyln in LSP mode.

Includes 'nickspoons/vim-sharpenup' but doesn't use those mappings.

Uses vim-clap for selection if it is loaded, otherwise quickfix list.

I don't use snippets so hadn't configured anything there.

Build options:

  1. vim-which-key e.g. <leader>lbp to build current project.
  2. Defines :Make command which autocompletes to a *.csproj in the solution.
  3. Defines OmniSharpBuildProject and OmniSharpBuildSolution.
  4. Eventually plumbing will include a better/modern vim CompilerSet 'nickspoons/vim-cs', the current C# ones distributed in vim are archaic and not relevant. Once this works I'll use it to plumb items 1 and 3 above.

Disables space-vim programming layer from resetting errorformat. Eventually will include 'nickspoons/vim-cs'. That CompilerSet will probably modify errorformat.