Closed unrealphong closed 2 weeks ago
Can you help me fix the above problem? Thanks
the same problem
the same problem
LOL, I tried changing the import order of config files but that function doesn't work. I'm temporarily replacing it with format on save:
local autocmd = vim.api.nvim_create_autocmd
autocmd('BufWritePre', {
pattern = '*.ts,*.tsx,*.jsx,*.js',
callback = function(args)
vim.cmd 'TSToolsAddMissingImports sync'
vim.cmd 'TSToolsOrganizeImports sync'
require('conform').format { bufnr = args.buf }
end,
})
I tried enter the command directly on the command line, but it isn't working,too
Is this still an issue? It works on my side. Can you paste your config and give some small example where I could reproduce it?
I configured as shown below but still cannot use this function when pressing the shortcut