Skip to content

Instantly share code, notes, and snippets.

@lopesivan
Created November 7, 2023 20:16
Show Gist options
  • Save lopesivan/ba6caac35ba6a5104423624ba5c18657 to your computer and use it in GitHub Desktop.
Save lopesivan/ba6caac35ba6a5104423624ba5c18657 to your computer and use it in GitHub Desktop.
after/plugin/csharpier.lua
if vim.fn.executable "dotnet-csharpier" == 0 then
return
end
local group = vim.api.nvim_create_augroup("CsharpierAuto", { clear = true })
vim.api.nvim_create_autocmd("BufWritePost", {
group = group,
pattern = { "*.cs" },
callback = function()
require("config.csharpier").format()
end,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment