Adds debugger

This commit is contained in:
Thomas Lazarus 2025-11-06 21:43:39 -06:00
parent 93231d06f7
commit 2e03cfad57
No known key found for this signature in database
2 changed files with 6 additions and 10 deletions

View File

@ -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

View File

@ -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