mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 03:12:24 +00:00
Add dap but commented out lol, also stuff kinda slow
This commit is contained in:
parent
0a7b80f3e2
commit
793b65c843
6 changed files with 49 additions and 4 deletions
|
@ -82,7 +82,7 @@ in
|
||||||
cargo-watch
|
cargo-watch
|
||||||
cargo-expand
|
cargo-expand
|
||||||
gdbgui
|
gdbgui
|
||||||
lldb
|
#lldb
|
||||||
zola
|
zola
|
||||||
python38Packages.pylint
|
python38Packages.pylint
|
||||||
gitAndTools.gitflow
|
gitAndTools.gitflow
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
:kyazdani42/nvim-web-devicons {}
|
:kyazdani42/nvim-web-devicons {}
|
||||||
|
|
||||||
:p00f/nvim-ts-rainbow {}
|
;:p00f/nvim-ts-rainbow {}
|
||||||
;:romgrk/nvim-treesitter-context {}
|
;:romgrk/nvim-treesitter-context {}
|
||||||
:JoosepAlviste/nvim-ts-context-commentstring {}
|
:JoosepAlviste/nvim-ts-context-commentstring {}
|
||||||
:nvim-treesitter/nvim-treesitter {:mod "plugins.treesitter"
|
:nvim-treesitter/nvim-treesitter {:mod "plugins.treesitter"
|
||||||
|
@ -73,6 +73,12 @@
|
||||||
|
|
||||||
:iamcco/markdown-preview.nvim {:run vim.fn.mkdp#util#install}
|
: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 ----------------------------------------- <<<
|
; code-related ----------------------------------------- <<<
|
||||||
|
|
||||||
:folke/lsp-trouble.nvim {:mod "plugins.trouble"}
|
:folke/lsp-trouble.nvim {:mod "plugins.trouble"}
|
||||||
|
|
38
nvim/.config/nvim/fnl/plugins/nvim-dap.fnl
Normal file
38
nvim/.config/nvim/fnl/plugins/nvim-dap.fnl
Normal 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"}])
|
|
@ -6,5 +6,6 @@
|
||||||
(telescope.setup
|
(telescope.setup
|
||||||
{:defaults {:mappings {:i {:<esc> actions.close}}}})
|
{:defaults {:mappings {:i {:<esc> actions.close}}}})
|
||||||
|
|
||||||
|
;(telescope.load_extension "dap")
|
||||||
|
|
||||||
(utils.keymap :n :<C-p> ":Telescope find_files<CR>")
|
(utils.keymap :n :<C-p> ":Telescope find_files<CR>")
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
;do
|
;do
|
||||||
;(print name)
|
;(print name)
|
||||||
;(time
|
;(time
|
||||||
(require name))
|
(require name))
|
||||||
#(a.println (.. "Error sourcing " name ":\n" (fennel.traceback $1)))))
|
#(a.println (.. "Error sourcing " name ":\n" (fennel.traceback $1)))))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue