added fzf-thumb script. config edits. more fugitive setup. telescope rg setup. disabled auto dapui.

This commit is contained in:
2025-06-20 17:08:09 -05:00
parent 8c809c40db
commit 3252a201c1
4 changed files with 77 additions and 17 deletions

View File

@@ -1,18 +1,5 @@
local ok, dap = pcall(require, 'dap')
if ok then
vim.keymap.set("n", "<Leader>dl", function() dap.step_into() end)
vim.keymap.set("n", "<Leader>dj", function() dap.step_over() end)
vim.keymap.set("n", "<Leader>dk", function() dap.step_out() end)
vim.keymap.set("n", "<Leader>dc", function() dap.continue() end)
vim.keymap.set("n", "<Leader>db", function() dap.toggle_breakpoint() end)
vim.keymap.set("n", "<Leader>db>", function()
dap.set_breakpoint(vim.fn.input('Breakpoint condition: '))
end)
vim.keymap.set("n", "<Leader>dd", function() dap.terminate() end)
vim.keymap.set("n", "<Leader>dr", function() dap.run_last() end)
--vim.keymap.set("n", "<Leader>dt", "<cmd>lua vim.cmd('RustLsp testables')<Cr>")
-- vim.api.nvim_set_hl(namespace, 'DapBreakpoint', { fg='#993939', bg='#31353f' })
-- vim.api.nvim_set_hl(namespace, 'DapLogPoint', { fg='#61afef', bg='#31353f' })
-- vim.api.nvim_set_hl(namespace, 'DapStopped', { fg='#98c379', bg='#31353f' })
@@ -41,6 +28,21 @@ if ok then
local ok, dapui = pcall(require, 'dapui')
if ok then
dapui.setup()
vim.keymap.set("n", "<Leader>dl", function() dap.step_into() end)
vim.keymap.set("n", "<Leader>dj", function() dap.step_over() end)
vim.keymap.set("n", "<Leader>dk", function() dap.step_out() end)
vim.keymap.set("n", "<Leader>dc", function() dap.continue() end)
vim.keymap.set("n", "<Leader>db", function() dap.toggle_breakpoint() end)
vim.keymap.set("n", "<Leader>dB", function()
dap.set_breakpoint(vim.fn.input('Breakpoint condition: '))
end)
vim.keymap.set("n", "<Leader>dd", function() dap.terminate() end)
vim.keymap.set("n", "<Leader>dr", function() dap.run_last() end)
--vim.keymap.set("n", "<Leader>dt", "<cmd>lua vim.cmd('RustLsp testables')<Cr>")
vim.keymap.set("n", "<Leader>ds", function() dapui.toggle() end)
--[[
dap.listeners.before.attach.dapui_config = function()
dapui.open()
end
@@ -53,6 +55,7 @@ if ok then
dap.listeners.before.event_exited.dapui_config = function()
dapui.close()
end
]]--
end
dap.configurations.rust = {