mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Added go.nvim, updated ts script to accept a session argument
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user