Compare commits

...

4 Commits

Author SHA1 Message Date
Ori Perry
dabce46993 Add underline for warnings 2026-02-28 13:48:43 +02:00
Ori Perry
7cc245ecaf Format the dap keybinds 2026-02-28 11:32:40 +02:00
Ori Perry
86f1ba26f2 Improve undofile comment 2026-02-28 11:31:21 +02:00
Ori Perry
9a3a2f9678 Update the github actions 2026-02-28 11:29:58 +02:00
3 changed files with 11 additions and 40 deletions

View File

@ -9,13 +9,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2 uses: actions/checkout@v6
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- name: Stylua Check - name: Stylua Check
uses: JohnnyMorganz/stylua-action@v3 uses: JohnnyMorganz/stylua-action@v4
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
version: latest version: latest
args: --check . args: --check .

View File

@ -119,7 +119,7 @@ vim.schedule(function() vim.o.clipboard = 'unnamedplus' end)
-- Enable break indent -- Enable break indent
vim.o.breakindent = true vim.o.breakindent = true
-- Save undo history -- Enable undo/redo changes even after closing and reopening a file
vim.o.undofile = true vim.o.undofile = true
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term -- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
@ -177,7 +177,7 @@ vim.diagnostic.config {
update_in_insert = false, update_in_insert = false,
severity_sort = true, severity_sort = true,
float = { border = 'rounded', source = 'if_many' }, float = { border = 'rounded', source = 'if_many' },
underline = { severity = vim.diagnostic.severity.ERROR }, underline = { severity = { min = vim.diagnostic.severity.WARN } },
-- Can switch between these as you prefer -- Can switch between these as you prefer
virtual_text = true, -- Text shows up at the end of the line virtual_text = true, -- Text shows up at the end of the line

View File

@ -28,42 +28,14 @@ return {
}, },
keys = { keys = {
-- Basic debugging keymaps, feel free to change to your liking! -- Basic debugging keymaps, feel free to change to your liking!
{ { '<F5>', function() require('dap').continue() end, desc = 'Debug: Start/Continue' },
'<F5>', { '<F1>', function() require('dap').step_into() end, desc = 'Debug: Step Into' },
function() require('dap').continue() end, { '<F2>', function() require('dap').step_over() end, desc = 'Debug: Step Over' },
desc = 'Debug: Start/Continue', { '<F3>', function() require('dap').step_out() end, desc = 'Debug: Step Out' },
}, { '<leader>b', function() require('dap').toggle_breakpoint() end, desc = 'Debug: Toggle Breakpoint' },
{ { '<leader>B', function() require('dap').set_breakpoint(vim.fn.input 'Breakpoint condition: ') end, desc = 'Debug: Set Breakpoint' },
'<F1>',
function() require('dap').step_into() end,
desc = 'Debug: Step Into',
},
{
'<F2>',
function() require('dap').step_over() end,
desc = 'Debug: Step Over',
},
{
'<F3>',
function() require('dap').step_out() end,
desc = 'Debug: Step Out',
},
{
'<leader>b',
function() require('dap').toggle_breakpoint() end,
desc = 'Debug: Toggle Breakpoint',
},
{
'<leader>B',
function() require('dap').set_breakpoint(vim.fn.input 'Breakpoint condition: ') end,
desc = 'Debug: Set Breakpoint',
},
-- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception. -- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception.
{ { '<F7>', function() require('dapui').toggle() end, desc = 'Debug: See last session result.' },
'<F7>',
function() require('dapui').toggle() end,
desc = 'Debug: See last session result.',
},
}, },
config = function() config = function()
local dap = require 'dap' local dap = require 'dap'