ya yeet omanisharp, use csharp_ls
This commit is contained in:
parent
aab42872eb
commit
db9a6551ef
3 changed files with 79 additions and 39 deletions
43
nvim/lua/plugins/omnisharp.lua
Normal file
43
nvim/lua/plugins/omnisharp.lua
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue