From 2e03cfad5760136a56da5618c95c34b6c73b2386 Mon Sep 17 00:00:00 2001 From: Thomas Lazarus Date: Thu, 6 Nov 2025 21:43:39 -0600 Subject: [PATCH 1/6] Adds debugger --- lua/kickstart/plugins/debug.lua | 14 ++++---------- lua/lazy-plugins.lua | 2 ++ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 8e332bf2..8f1e51f7 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -1,15 +1,5 @@ --- debug.lua --- --- Shows how to use the DAP plugin to debug your code. --- --- Primarily focused on configuring the debugger for Go, but can --- be extended to other languages as well. That's why it's called --- kickstart.nvim and not kitchen-sink.nvim ;) - return { - -- NOTE: Yes, you can install new plugins here! 'mfussenegger/nvim-dap', - -- NOTE: And you can specify dependencies as well dependencies = { -- Creates a beautiful debugger UI 'rcarriga/nvim-dap-ui', @@ -23,6 +13,7 @@ return { -- Add your own debuggers here 'leoluz/nvim-dap-go', + 'mfussenegger/nvim-dap-python', }, keys = { -- Basic debugging keymaps, feel free to change to your liking! @@ -81,6 +72,9 @@ return { local dap = require 'dap' local dapui = require 'dapui' + require('dap-python').setup { 'uv' } + require('dap-python').test_runner = 'pytest' + require('mason-nvim-dap').setup { -- Makes a best effort to setup the various debuggers with -- reasonable debug configurations diff --git a/lua/lazy-plugins.lua b/lua/lazy-plugins.lua index bcfd02ad..06efd09e 100644 --- a/lua/lazy-plugins.lua +++ b/lua/lazy-plugins.lua @@ -26,6 +26,8 @@ require('lazy').setup({ require 'kickstart.plugins.indent_line', require 'kickstart.plugins.lint', + + require 'kickstart.plugins.debug', }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the From ebd12e7ab19b76718c58dfc5de966d01abade9f3 Mon Sep 17 00:00:00 2001 From: Thomas Lazarus Date: Thu, 6 Nov 2025 22:22:45 -0600 Subject: [PATCH 2/6] Setups python debugger --- lua/kickstart/plugins/debug.lua | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 8f1e51f7..931cbf19 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -12,7 +12,6 @@ return { 'jay-babu/mason-nvim-dap.nvim', -- Add your own debuggers here - 'leoluz/nvim-dap-go', 'mfussenegger/nvim-dap-python', }, keys = { @@ -72,26 +71,17 @@ return { local dap = require 'dap' local dapui = require 'dapui' - require('dap-python').setup { 'uv' } - require('dap-python').test_runner = 'pytest' - require('mason-nvim-dap').setup { - -- Makes a best effort to setup the various debuggers with - -- reasonable debug configurations automatic_installation = true, - - -- You can provide additional configuration to the handlers, - -- see mason-nvim-dap README for more information handlers = {}, - - -- You'll need to check that you have the required things installed - -- online, please don't ask me how to install them :) ensure_installed = { - -- Update this to ensure that you have the debuggers for the langs you want - 'delve', + 'python', }, } + require('dap-python').setup 'uv' + require('dap-python').test_runner = 'pytest' + -- Dap UI setup -- For more information, see |:help nvim-dap-ui| dapui.setup { @@ -129,14 +119,5 @@ return { dap.listeners.after.event_initialized['dapui_config'] = dapui.open dap.listeners.before.event_terminated['dapui_config'] = dapui.close dap.listeners.before.event_exited['dapui_config'] = dapui.close - - -- Install golang specific config - require('dap-go').setup { - delve = { - -- On Windows delve must be run attached or it crashes. - -- See https://github.com/leoluz/nvim-dap-go/blob/main/README.md#configuring - detached = vim.fn.has 'win32' == 0, - }, - } end, } From 9348a948f8bb43f140cf6da0d5b2baf30c5bbc77 Mon Sep 17 00:00:00 2001 From: Thomas Lazarus Date: Mon, 10 Nov 2025 19:56:01 -0600 Subject: [PATCH 3/6] Change todo comments config --- lua/kickstart/plugins/todo-comments.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/kickstart/plugins/todo-comments.lua b/lua/kickstart/plugins/todo-comments.lua index 117112bf..ae2b0d66 100644 --- a/lua/kickstart/plugins/todo-comments.lua +++ b/lua/kickstart/plugins/todo-comments.lua @@ -1,3 +1,3 @@ -return { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } } +return { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = {} } -- vim: ts=2 sts=2 sw=2 et From 37bbcda810332712102f002a1c3f6f94ecb418e6 Mon Sep 17 00:00:00 2001 From: Thomas Lazarus Date: Mon, 10 Nov 2025 20:02:54 -0600 Subject: [PATCH 4/6] Adds mini.comment --- lua/kickstart/plugins/mini.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/kickstart/plugins/mini.lua b/lua/kickstart/plugins/mini.lua index 5403e5b0..12f12240 100644 --- a/lua/kickstart/plugins/mini.lua +++ b/lua/kickstart/plugins/mini.lua @@ -16,6 +16,8 @@ return { -- Collection of various small independent plugins/modules -- - sr)' - [S]urround [R]eplace [)] ['] require('mini.surround').setup() + require('mini.comment').setup() + -- Simple and easy statusline. -- You could remove this setup call if you don't like it, -- and try some other statusline plugin From 65cfd130eb7a4d636b7df489cf20bddf41f506c4 Mon Sep 17 00:00:00 2001 From: Thomas Lazarus Date: Mon, 10 Nov 2025 20:18:59 -0600 Subject: [PATCH 5/6] Updates keybindings --- lua/kickstart/plugins/debug.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 931cbf19..b0819502 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -17,28 +17,28 @@ return { keys = { -- Basic debugging keymaps, feel free to change to your liking! { - '', + '', function() require('dap').continue() end, desc = 'Debug: Start/Continue', }, { - '', + '', function() require('dap').step_into() end, desc = 'Debug: Step Into', }, { - '', + '', function() require('dap').step_over() end, desc = 'Debug: Step Over', }, { - '', + '', function() require('dap').step_out() end, @@ -60,7 +60,7 @@ return { }, -- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception. { - '', + '', function() require('dapui').toggle() end, From 1d47a8229759c3fec1a33306c95804a0dfe62b38 Mon Sep 17 00:00:00 2001 From: Thomas Lazarus Date: Mon, 10 Nov 2025 21:04:28 -0600 Subject: [PATCH 6/6] Switch to using arrow keys --- lua/kickstart/plugins/debug.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index b0819502..1840137e 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -17,28 +17,28 @@ return { keys = { -- Basic debugging keymaps, feel free to change to your liking! { - '', + '', function() require('dap').continue() end, desc = 'Debug: Start/Continue', }, { - '', + '', function() require('dap').step_into() end, desc = 'Debug: Step Into', }, { - '', + '', function() require('dap').step_over() end, desc = 'Debug: Step Over', }, { - '', + '', function() require('dap').step_out() end, @@ -60,7 +60,7 @@ return { }, -- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception. { - '', + '', function() require('dapui').toggle() end,