43 lines
885 B
Lua
43 lines
885 B
Lua
return {
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = { ensure_installed = { "c_sharp" } },
|
|
},
|
|
{
|
|
"williamboman/mason.nvim",
|
|
opts = { ensure_installed = { "csharpier", "netcoredbg" } },
|
|
},
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
csharp_ls = {},
|
|
},
|
|
},
|
|
},
|
|
-- {
|
|
-- "nvimtools/none-ls.nvim",
|
|
-- optional = true,
|
|
-- opts = function(_, opts)
|
|
-- local nls = require("null-ls")
|
|
-- opts.sources = vim.list_extend(opts.sources or {}, {
|
|
-- nls.builtins.formatting.csharpier,
|
|
-- })
|
|
-- end,
|
|
-- },
|
|
{
|
|
"stevearc/conform.nvim",
|
|
optional = true,
|
|
opts = {
|
|
formatters_by_ft = {
|
|
cs = { "csharpier" },
|
|
},
|
|
formatters = {
|
|
csharpier = {
|
|
command = "dotnet-csharpier",
|
|
args = { "--write-stdout" },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|