Automatically executes dpp#make_state
.
require 'dpp-automkstate'.setup('~/.cache/dpp/', '~/.config/nvim/dpp.ts') -- Set the dpp#make_state args (before calling watch)
require 'dpp-automkstate'.watch(vim.fn.stdpath 'config') -- Set a file/directory path to watch
-- require 'dpp-automkstate'.watch("~/dpp") -- If you want to watch multiple files/directories, call it multiple times
setup
: the arguments are the same asdpp#make_state
functionwatch
: the argument is a file or directory path. Returns the autocmd ID
[[plugins]]
repo = "gw31415/dpp-automkstate.nvim"
on_event = "BufWritePre"
lua_source = '''
require 'dpp-automkstate'.setup('~/.cache/dpp/', '~/.config/nvim/dpp.ts')
require 'dpp-automkstate'.watch(vim.fn.stdpath 'config')
'''
Apache-2.0