mirror of https://github.com/LazyVim/starter
feat: add C# plugins
parent
1a39446711
commit
8e7f26d1c9
|
@ -14,6 +14,7 @@
|
||||||
"codesnap.nvim": { "branch": "main", "commit": "a223fd882953e56ae1a8747fdc44b8d6a2ff7a9b" },
|
"codesnap.nvim": { "branch": "main", "commit": "a223fd882953e56ae1a8747fdc44b8d6a2ff7a9b" },
|
||||||
"compiler.nvim": { "branch": "main", "commit": "4ad0395994f374e6c797266ea4acca90927f19aa" },
|
"compiler.nvim": { "branch": "main", "commit": "4ad0395994f374e6c797266ea4acca90927f19aa" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "c26dadf8a47a547768d1048a0d698ecec33494ce" },
|
"conform.nvim": { "branch": "master", "commit": "c26dadf8a47a547768d1048a0d698ecec33494ce" },
|
||||||
|
"csharp.nvim": { "branch": "main", "commit": "48d72dfad26177295744d6da958f1dc08046a9d9" },
|
||||||
"dial.nvim": { "branch": "master", "commit": "750f802879c90ea51f92b68c35fa562ee575804a" },
|
"dial.nvim": { "branch": "master", "commit": "750f802879c90ea51f92b68c35fa562ee575804a" },
|
||||||
"dressing.nvim": { "branch": "master", "commit": "6741f1062d3dc6e4755367a7e9b347b553623f04" },
|
"dressing.nvim": { "branch": "master", "commit": "6741f1062d3dc6e4755367a7e9b347b553623f04" },
|
||||||
"edgy.nvim": { "branch": "main", "commit": "a8bc1d24798c80a391f1a5d898a50c41a7f93883" },
|
"edgy.nvim": { "branch": "main", "commit": "a8bc1d24798c80a391f1a5d898a50c41a7f93883" },
|
||||||
|
|
|
@ -10,3 +10,18 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
vim.api.nvim_win_set_config(win_id, { border = "rounded" })
|
vim.api.nvim_win_set_config(win_id, { border = "rounded" })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
vim.api.nvim_create_autocmd("LspAttach", {
|
||||||
|
callback = function(args)
|
||||||
|
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
|
||||||
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
|
group = augroup,
|
||||||
|
buffer = args.buf,
|
||||||
|
callback = function()
|
||||||
|
vim.lsp.buf.format({ timeout = 1000, async = false })
|
||||||
|
if vim.bo[0].filetype == "cs" then
|
||||||
|
require("csharp").fix_usings()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
|
@ -34,6 +34,9 @@ return {
|
||||||
require("telescope").load_extension("import")
|
require("telescope").load_extension("import")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Tastyep/structlog.nvim",
|
||||||
|
},
|
||||||
-- TS / JS
|
-- TS / JS
|
||||||
{
|
{
|
||||||
"dmmulroy/tsc.nvim",
|
"dmmulroy/tsc.nvim",
|
||||||
|
@ -72,7 +75,27 @@ return {
|
||||||
"typescriptreact",
|
"typescriptreact",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
-- C#
|
||||||
{
|
{
|
||||||
|
"iabdelkareem/csharp.nvim",
|
||||||
|
ft = "cs",
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<F5>",
|
||||||
|
function()
|
||||||
|
require("csharp").debug_project()
|
||||||
|
end,
|
||||||
|
{ desc = "C# debug project", noremap = true, nowait = true },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
dependencies = {
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
"Tastyep/structlog.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("mason").setup()
|
||||||
|
require("csharp").setup()
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue