vim.api.nvim_create_user_command("W", "write", {}) vim.api.nvim_create_user_command("Q", "qall!", {}) -- Create a floating terminal vim.api.nvim_create_user_command("FloaTerm", require("core.lib.toggle_terminal"), { desc = "Toggle a floating terminal", }) -- highlight text on copy vim.api.nvim_create_autocmd("TextYankPost", { desc = "Highlight when yanking (copying) text", callback = vim.highlight.on_yank, group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true, }), })