Skip to content

Enable debug logging

dcampos edited this page Jan 7, 2023 · 2 revisions

Snippy can use plenary.log as an optional dependency for logging. To enable it, change the logging config parameter:

require('snippy').setup({
    -- ...
    logging = {
        enabled = true,
        level = 'trace', -- default is debug
    }
})

Remember to install plenary.nvim before you enable logging. With lazy.nvim, it may be lazy loaded:

    {
        'nvim-lua/plenary.nvim',
        lazy = true,
    },

The log is saved to $XDG_CACHE_HOME/nvim/snippy.log (on Linux, normally ~/.cache/nvim/snippy.log).

Clone this wiki locally