Compare commits
2 Commits
2a3233a140
...
e836135b37
Author | SHA1 | Date |
---|---|---|
Rob Watson | e836135b37 | |
Rob Watson | 6fbacb59ac |
7
nvimrc
7
nvimrc
|
@ -292,13 +292,6 @@ packadd! conform.nvim " https://github.com/stevearc/conform.nvim.git
|
|||
|
||||
lua require "conform_config"
|
||||
|
||||
" nvim-dap
|
||||
packadd! nvim-dap " https://github.com/mfussenegger/nvim-dap.git
|
||||
packadd! nvim-dap-go " https://github.com/leoluz/nvim-dap-go.git
|
||||
packadd! nvim-dap-ruby " https://github.com/suketa/nvim-dap-ruby.git
|
||||
|
||||
lua require "debugger"
|
||||
|
||||
" treesitter:
|
||||
packadd! nvim-treesitter " https://github.com/nvim-treesitter/nvim-treesitter.git
|
||||
packadd! nvim-treesitter-textobjects " https://github.com/nvim-treesitter/nvim-treesitter-textobjects.git
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
require("aerial").setup({
|
||||
on_attach = function(bufnr)
|
||||
vim.keymap.set("n", "{", "<cmd>AerialPrev<CR>", { buffer = bufnr })
|
||||
vim.keymap.set("n", "}", "<cmd>AerialNext<CR>", { buffer = bufnr })
|
||||
vim.keymap.set("n", "[", "<cmd>AerialPrev<CR>", { buffer = bufnr })
|
||||
vim.keymap.set("n", "]", "<cmd>AerialNext<CR>", { buffer = bufnr })
|
||||
end,
|
||||
autojump = true,
|
||||
})
|
||||
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>")
|
||||
vim.keymap.set("n", "<leader>ds", "<cmd>call aerial#fzf()<CR>")
|
||||
|
|
|
@ -1,112 +0,0 @@
|
|||
-- require("dap").set_log_level("DEBUG")
|
||||
|
||||
-- go install github.com/go-delve/delve/cmd/dlv@latest
|
||||
require("dap-go").setup({})
|
||||
require("dap-ruby").setup()
|
||||
|
||||
local prefix = "D"
|
||||
|
||||
local configs = {
|
||||
{
|
||||
"Continue",
|
||||
"<Leader>dc",
|
||||
function()
|
||||
require("dap").continue()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"Next",
|
||||
"<Leader>dn",
|
||||
function()
|
||||
require("dap").step_over()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"StepInto",
|
||||
"<Leader>di",
|
||||
function()
|
||||
require("dap").step_into()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"StepOut",
|
||||
"<Leader>du",
|
||||
function()
|
||||
require("dap").step_out()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"ToggleBreakpoint",
|
||||
"<Leader>dt",
|
||||
function()
|
||||
require("dap").toggle_breakpoint()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"Breakpoint",
|
||||
"<Leader>db",
|
||||
function()
|
||||
require("dap").set_breakpoint()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"Logpoint",
|
||||
"<Leader>dl",
|
||||
function()
|
||||
require("dap").set_breakpoint(nil, nil, vim.fn.input("Log point message: "))
|
||||
end,
|
||||
},
|
||||
{
|
||||
"Repl",
|
||||
"<Leader>dr",
|
||||
function()
|
||||
require("dap").repl.open()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"RunLast",
|
||||
"<Leader>dl",
|
||||
function()
|
||||
require("dap").run_last()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"WidgetsHover",
|
||||
"<Leader>dh",
|
||||
function()
|
||||
require("dap.ui.widgets").hover()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"WidgetsPreview",
|
||||
"<Leader>dp",
|
||||
function()
|
||||
require("dap.ui.widgets").preview()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"Frames",
|
||||
"<Leader>df",
|
||||
function()
|
||||
local widgets = require("dap.ui.widgets")
|
||||
widgets.centered_float(widgets.frames)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"Scopes",
|
||||
"<Leader>ds",
|
||||
function()
|
||||
local widgets = require("dap.ui.widgets")
|
||||
widgets.centered_float(widgets.scopes)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
for _, v in pairs(configs) do
|
||||
local name = v[1]
|
||||
local keymap = v[2]
|
||||
local fn = v[3]
|
||||
|
||||
vim.api.nvim_create_user_command(prefix .. name, fn, {})
|
||||
vim.keymap.set("n", keymap, fn)
|
||||
end
|
Loading…
Reference in New Issue