From 4b115ff332fe3137b4578dd5b7bcb1ffc5e51997 Mon Sep 17 00:00:00 2001 From: buffet Date: Wed, 11 Jan 2023 16:56:57 +0100 Subject: [PATCH] feat(vim): install more tree-sitter grammars --- programs/nvim.nix | 71 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/programs/nvim.nix b/programs/nvim.nix index 992038a..df550b3 100644 --- a/programs/nvim.nix +++ b/programs/nvim.nix @@ -253,32 +253,103 @@ ''; } + { + plugin = nvim-dap; + config = '' + nnoremap lua require 'dap'.continue() + nnoremap lua require 'dap'.step_over() + nnoremap lua require 'dap'.step_into() + nnoremap lua require 'dap'.step_out() + nnoremap ${leader}db lua require'dap'.toggle_breakpoint() + nnoremap ${leader}dB lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: ')) + nnoremap ${leader}dr lua require'dap'.repl.open() + nnoremap ${leader}dl lua require'dap'.run_last() + + lua <