local M = {} function M.setup() vim.keymap.set({ "n", "v" }, "co", function() vim.lsp.buf.code_action({ apply = true, context = { only = { "source.organizeimports.ts" }, diagnostics = {}, }, }) end, { desc = "Typescript: organize imports" }) vim.keymap.set({ "n", "v" }, "co", function() vim.lsp.buf.code_action({ apply = true, context = { only = { "source.removeunused.ts" }, diagnostics = {}, }, }) end, { desc = "Typescript: remove unused imports" }) end return M