From 804f2a342d1b2002ad383ff604e75eb0caba8f65 Mon Sep 17 00:00:00 2001 From: amelia squires Date: Wed, 13 Nov 2024 06:17:23 -0600 Subject: ton of new stuff --- fnl/plugins/dap.fnl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 fnl/plugins/dap.fnl (limited to 'fnl/plugins/dap.fnl') 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) -- cgit v1.2.3