Vim syntax plugin for my own SLF (Simple Log File) format
This requires slf on the system path. After installing, run :checkhealth slf
to check if the setup is valid.
Using lazy.nvim
:
{
'ursuscamp/slf.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
keys = {
{ '<leader>xl', ':Slf<CR>', desc = 'Log to SLF' },
}
config = function()
require('slf').setup()
end
}
These are the options which can be passed to setup()
:
{
-- May be a path to a .slf file to use. This is passed to --file argument of slf.
-- If not provided, it will use slf's default.
path = nil
}