~havi/nvim.d

18bcaaba41629e5c5673de7b3639521836ddbb09 — havi 5 months ago b428d75
refactor(go): move `autocommand` to `after`
2 files changed, 1 insertions(+), 1 deletions(-)

M after/ftplugin/go.lua
M lua/plugins/languages/go-nvim.lua
M after/ftplugin/go.lua => after/ftplugin/go.lua +1 -0
@@ 72,3 72,4 @@ wk.register({
   buffer = vim.api.nvim_get_current_buf(),
   noremap = true,
})
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go-nvim.format').goimport() ]], false)
\ No newline at end of file

M lua/plugins/languages/go-nvim.lua => lua/plugins/languages/go-nvim.lua +0 -1
@@ 55,6 55,5 @@ function M.config()
      -- [ FIXME ]
      -- lsp_on_attach = require "lib.lsp.on_attach",
   })
   vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go-nvim.format').goimport() ]], false)
end
return M