Skip to content
Discussion options

You must be logged in to vote

There is local snippets_dir = vim.fn.stdpath('config') .. '/lua/snippets' line in the code, but the directory layout show that 'snippets/' is top directory in the config (i.e. `stdpath('config') .. '/snippets'). Would you mind checking where is the typo here?

But nevertheless, the issue seems to be that custom snippets should be configured inside config.snippets directory, not top level config. Here is the basic example. So assuming the directory layout is correct (i.e. there is '~/.config/nvim/snippets'), the following should work:

local snippets = require('mini.snippets')
return require('mini.snippets').setup({
  snippets = {
    snippets.gen_loader.from_file(vim.fn.stdpath('config') .. '

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@echasnovski
Comment options

Answer selected by echasnovski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.snippets
2 participants