From a7b6ba71df915da879a909f5cbb6a7e1200f9284 Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Mon, 11 Oct 2021 18:24:53 +0200 Subject: [PATCH] Add debugging stuff to keybinds --- nvim/.config/nvim/fnl/dots/keybinds.fnl | 10 ++++++++++ nvim/.config/nvim/fnl/dots/plugins.fnl | 1 + 2 files changed, 11 insertions(+) diff --git a/nvim/.config/nvim/fnl/dots/keybinds.fnl b/nvim/.config/nvim/fnl/dots/keybinds.fnl index e652a7e..639672d 100644 --- a/nvim/.config/nvim/fnl/dots/keybinds.fnl +++ b/nvim/.config/nvim/fnl/dots/keybinds.fnl @@ -47,6 +47,16 @@ "n" [(. (require :persistence) :load) "Load last session"] + "d" {:name "+Debugging" + "b" [#(req dap.toggle_breakpoint) "toggle breakpoint"] + "u" [#(req dapui.toggle) "toggle dapui"] + "c" [#(req dap.step_into) "continue"] + "r" [(. (require "dap") :repl :open) "open repl"] + "s" {:name "+Step" + "o" [#(req dap.step_over) "over"] + "u" [#(req dap.step_out) "out"] + "i" [#(req dap.step_into) "into"]}} + "m" {:name "+Code actions" "d" (cmd "Lspsaga hover_doc" "Show documentation") "b" (cmd "Lspsaga lsp_finder" "Find stuff") diff --git a/nvim/.config/nvim/fnl/dots/plugins.fnl b/nvim/.config/nvim/fnl/dots/plugins.fnl index 6a13419..bd4705d 100644 --- a/nvim/.config/nvim/fnl/dots/plugins.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins.fnl @@ -200,6 +200,7 @@ :tommcdo/vim-exchange {} :eraserhd/parinfer-rust {:run "cargo build --release"} + :cespare/vim-toml {} :bduggan/vim-raku {:ft ["raku"]} :LnL7/vim-nix {:ft ["nix"]} :kevinoid/vim-jsonc {}