Skip to content

Nuxt

Add the module to nuxt.config.ts:

ts
export default defineNuxtConfig({
  modules: ['@macrulez/vue-command-palette/nuxt'],
})

The module installs the plugin automatically, registers useCommandPalette, useRegisterCommands, and useRegisterGroup as auto-imports (no explicit import needed in any component), and adds the default stylesheet to nuxt.options.css.

Options

Configure the module under its own vCommandPalette key — same shape as PaletteOptions:

ts
export default defineNuxtConfig({
  modules: ['@macrulez/vue-command-palette/nuxt'],
  vCommandPalette: {
    hotkey: ['$mod', 'k'],
    persistRecent: true,
    maxRecent: 5,
  },
})