Add dap but commented out lol, also stuff kinda slow

This commit is contained in:
elkowar 2021-05-17 19:24:48 +02:00
parent 0a7b80f3e2
commit 793b65c843
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F
6 changed files with 49 additions and 4 deletions

View file

@ -82,7 +82,7 @@ in
cargo-watch
cargo-expand
gdbgui
lldb
#lldb
zola
python38Packages.pylint
gitAndTools.gitflow

View file

@ -15,7 +15,7 @@
:kyazdani42/nvim-web-devicons {}
:p00f/nvim-ts-rainbow {}
;:p00f/nvim-ts-rainbow {}
;:romgrk/nvim-treesitter-context {}
:JoosepAlviste/nvim-ts-context-commentstring {}
:nvim-treesitter/nvim-treesitter {:mod "plugins.treesitter"
@ -73,6 +73,12 @@
:iamcco/markdown-preview.nvim {:run vim.fn.mkdp#util#install}
;:mfussenegger/nvim-dap {:opt true
;:mod "plugins.nvim-dap"}
;:nvim-telescope/telescope-dap.nvim {:opt true
;:requires [:mfussenegger/nvim-dap
;:nvim-telescope/telescope.nvim]}
; code-related ----------------------------------------- <<<
:folke/lsp-trouble.nvim {:mod "plugins.trouble"}

View file

@ -0,0 +1,38 @@
(module plugins.nvim-dap
{:require {a aniseed.core
utils utils
dap dap}})
(set dap.adapters.cpp
{:type "executable"
:attach {:pidProperty "pid" :pidSelect "ask"}
:command "lldb-vscode"
:env {:LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY "yes"}
:name "lldb"})
;; TODO This does not really work,.. REEEEEEEEEEEEEEE
(set dap.adapters.rust
{:type "executable"
:attach {:pidProperty "pid" :pidSelect "ask"}
:command "lldb-vscode"
:env {:LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY "yes"}
:name "lldb"
:initCommands ["command script import \"/home/leon/.rustup/toolchains/nightly-2021-03-18-x86_64-unknown-linux-gnu/lib/rustlib/etc/lldb_lookup.py\""
"type summary add --no-value --python-function lldb_rust_formatters.print_val -x \".*\" --category Rust"
"type category enable Rust"]})
(set dap.adapters.node2
{:type "executable"
:command "node"
:args ["/home/leon/tmp/vscode-node-debug2/out/src/nodeDebug.js"]})
(set dap.configurations.javascript
[{:name "javascript"
:type "node2"
:request "launch"
:program "${workspaceFolder}/${file}"
:cwd (vim.fn.getcwd)
:sourceMaps true
:protocol "inspector"
:console "integratedTerminal"}])

View file

@ -6,5 +6,6 @@
(telescope.setup
{:defaults {:mappings {:i {:<esc> actions.close}}}})
;(telescope.load_extension "dap")
(utils.keymap :n :<C-p> ":Telescope find_files<CR>")

View file

@ -75,7 +75,7 @@
;do
;(print name)
;(time
(require name))
(require name))
#(a.println (.. "Error sourcing " name ":\n" (fennel.traceback $1)))))

View file

@ -19,5 +19,5 @@ ensure("wbthomason", "packer.nvim")
ensure("Olical", "aniseed")
vim.g["aniseed#env"] = {
compile = true
compile = true
}