diff options
Diffstat (limited to '.vim/ftplugin/go.lua')
| -rw-r--r-- | .vim/ftplugin/go.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.vim/ftplugin/go.lua b/.vim/ftplugin/go.lua new file mode 100644 index 0000000..74d6bf1 --- /dev/null +++ b/.vim/ftplugin/go.lua @@ -0,0 +1,16 @@ +local g = vim.g + +-- local eval = vim.api.nvim_eval +-- if eval("exists('g:loaded_neomake')") then +-- g.neomake_go_build_maker = { +-- exe = 'go', +-- args = 'build', +-- append_file = 0, +-- } +-- g.neomake_go_enabled_makers = { 'go', 'golangci_lint' } +-- end + +require('utils').augroup2 { + neoformat_go = {{ 'BufWritePre', '*.go', + 'try | undojoin | Neoformat | catch | echoerr Neoformat\\ failed | endtry' }} +} |