diff options
author | amelia squires <[email protected]> | 2024-11-13 06:17:23 -0600 |
---|---|---|
committer | amelia squires <[email protected]> | 2024-11-13 06:17:23 -0600 |
commit | 804f2a342d1b2002ad383ff604e75eb0caba8f65 (patch) | |
tree | 0c23239e32ec36f6d9e84ac4d2099194881fd180 /fnl/plugins/dap.fnl | |
parent | e47fa485563a8a806c52f66a18471bbf012ac5c1 (diff) |
ton of new stuff
Diffstat (limited to 'fnl/plugins/dap.fnl')
-rw-r--r-- | fnl/plugins/dap.fnl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fnl/plugins/dap.fnl b/fnl/plugins/dap.fnl new file mode 100644 index 0000000..fbaf3ba --- /dev/null +++ b/fnl/plugins/dap.fnl @@ -0,0 +1,20 @@ +;all this does is load dap configurations +; +;the full directory name starting after the source (fnl) will be used +;replace all the /'s with periods and for each file in {source}/dap, +;set the modified path as a variable to require the file at the path +; +;ie: fnl/dap/adapters/lldb.fnl will run `dap.adapters.lldb = require'dap.adapters.lldb'` +; +;if you really want to (or are lazy) you can use lua/dap/{whatever}, but make sure a fennel file +;wont override it + +(tset _G :dap (require :dap)) +(local dir (.. (vim.fn.stdpath :config) "/lua/")) +(local search (io.popen (.. "find " dir "dap/ -name '*.*'"))) +(each [conf (search:lines)] + (local path (string.gsub conf "/" ".")) + (local req (path:sub (+ (# dir) 1) -5)) + ((assert (load (.. req " = require'" req "'"))))) + +((. (require :dap-python) :setup) :python3) |