Skip to content

Commit

Permalink
feat: more support for automated printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktux committed Dec 15, 2024
1 parent 34cd64b commit cd4c3c0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions defaults/.config/nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,25 @@ local p = {
{ '<c-c>', '<Plug>CapsLockToggle', mode = 'i', desc = 'caps_lock_toggle' },
},
},
{
"andrewferrier/debugprint.nvim",
keys = {
{ "g?", mode = 'n' },
{ "g?", mode = 'x' },
},
opts = {
keymaps = {
insert = {}
},
print_tag = "",
filetypes = {
["c"] = {
left_var = "printf(\""
}
}
},
version = "*", -- Remove if you DON'T want to use the stable version
},
{
'kevinhwang91/nvim-bqf',
ft = 'qf',
Expand Down
8 changes: 8 additions & 0 deletions defaults/.config/nvim/lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ return {
mode = { 'n' },
desc = 'refactoring_printf_debug',
},
{
'<leader>rv',
function()
require('refactoring').debug.print_var()
end,
mode = { 'n', 'x' },
desc = 'refactoring_printf_debug',
},
},
opts = {},
},
Expand Down

0 comments on commit cd4c3c0

Please sign in to comment.