Created
November 7, 2023 20:16
-
-
Save lopesivan/ba6caac35ba6a5104423624ba5c18657 to your computer and use it in GitHub Desktop.
after/plugin/csharpier.lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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