about summary refs log tree commit diff
path: root/fnl/nvrc/packs/rust.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-05-08 21:12:03 +0900
committersefidel <contact@sefidel.net>2022-05-08 21:12:03 +0900
commitd435b5ca68a3348b120140a08129c8c17ee5c30a (patch)
tree96a10a957c62a29a726ee2882f23e1e004c577ee /fnl/nvrc/packs/rust.fnl
parent13d21c4c4b8f15fe7e882d9a0283c5c7ac98697d (diff)
downloadnvimrc-d435b5ca68a3348b120140a08129c8c17ee5c30a.tar.gz
nvimrc-d435b5ca68a3348b120140a08129c8c17ee5c30a.zip
[WIP]: nvim-dap
Diffstat (limited to 'fnl/nvrc/packs/rust.fnl')
-rw-r--r--fnl/nvrc/packs/rust.fnl7
1 files changed, 7 insertions, 0 deletions
diff --git a/fnl/nvrc/packs/rust.fnl b/fnl/nvrc/packs/rust.fnl
new file mode 100644
index 0000000..90024b8
--- /dev/null
+++ b/fnl/nvrc/packs/rust.fnl
@@ -0,0 +1,7 @@
+(local {: setup} (require :rust-tools))
+
+(let [rust-tools-dap (require :rust-tools.dap)
+      extension-path (.. (os.getenv :HOME) "/.codelldb/share/vscode/extensions/vadimcn.vscode-lldb/")
+      codelldb-path (.. extension-path "adapter/codelldb")
+      liblldb-path (.. extension-path "lldb/lib/liblldb.so")]
+  (setup {:dap {:adapter (rust-tools-dap.get_codelldb_adapter codelldb-path liblldb-path)}}))