Skip to content

Instantly share code, notes, and snippets.

View tcastanie's full-sized avatar

Thibaut Castanié tcastanie

View GitHub Profile
@tcastanie
tcastanie / settings.json
Last active May 24, 2026 21:29
Zed settings
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
//
// https://zed.dev/docs/languages/javascript
@tcastanie
tcastanie / Nuxt-ScrollTop.md
Created February 1, 2025 11:15
Scroll to the Top Before Rendering a Page

💡 Nuxt Tip: Scroll to the Top Before Rendering a Page

definePageMeta is a compiler macro that you can use to set metadata for your pages. With the scrollToTop parameter you tell Nuxt to scroll to the top before rendering the page or not:

<script setup lang="ts">
definePageMeta({
  layout: 'default',
  scrollToTop: true,
})