7 lines
195 B
Lua
7 lines
195 B
Lua
|
vim.api.nvim_create_autocmd('BufWritePre', {
|
||
|
pattern = '*.go',
|
||
|
callback = function()
|
||
|
vim.lsp.buf.code_action({ context = { only = { 'source.organizeImports' } }, apply = true })
|
||
|
end
|
||
|
})
|