Added go.nvim, updated ts script to accept a session argument

This commit is contained in:
Michael Housh
2023-10-01 11:28:24 -04:00
parent 7c5c642ae5
commit 660ff7d94d
9 changed files with 52 additions and 11 deletions

View File

@@ -34,3 +34,14 @@ vim.api.nvim_create_autocmd(
}
)
vim.api.nvim_create_autocmd(
"BufWritePre",
{
pattern = "*.go",
callback = function()
require('go.format').goimport()
end,
group = vim.api.nvim_create_augroup("GoFormat", { clear = true })
}
)