Skip to content

Commit

Permalink
feat(pack): add c-sharp base pack (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacro authored Jun 25, 2023
1 parent 37e43be commit 91f4c57
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lua/astrocommunity/pack/cs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# C# Language Pack

**Requirements:** `dotnet` must be in your `PATH` and executable

This plugin pack does the following:

- Adds `c_sharp` Treesitter parsers
- Adds `csharp_ls` language server
- Adds the following `null-ls` sources:
- [csharpier](https://github.com/belav/csharpier)
- Adds `coreclr` debug adapters for nvim-dap
27 changes: 27 additions & 0 deletions lua/astrocommunity/pack/cs/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local utils = require "astronvim.utils"
return {
-- CSharp support
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "c_sharp")
end
end,
},
{
"jay-babu/mason-null-ls.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "csharpier") end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "csharp_ls") end,
},
{
"mfussenegger/nvim-dap",
{
"jay-babu/mason-nvim-dap.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "coreclr") end,
},
},
}

0 comments on commit 91f4c57

Please sign in to comment.