Skip to content
Discussion options

You must be logged in to vote

Add the following lines at the top of the file where you intend to use snacks types:

---@module 'snacks'

---@type snacks.Config
local config = {}

If you want to make snacks types globally accessible using lazydev, refer to LazyVim#lazydevnvim:

{
  'folke/lazydev.nvim',
  ft = 'lua',
  cmd = 'LazyDev',
  opts = {
    library = {
      { path = '${3rd}/luv/library', words = { 'vim%.uv' } },
      { path = 'snacks.nvim', words = { 'Snacks' } },
    },
  },
}

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Pitasi
Comment options

@zeromask1337
Comment options

Answer selected by zeromask1337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
4 participants
Converted from issue

This discussion was converted from issue #442 on January 10, 2025 11:48.