commit
This commit is contained in:
parent
7cbd45bb2c
commit
7e99edfa66
@ -1,5 +1,4 @@
|
|||||||
local map = vim.keymap.set
|
local map = vim.keymap.set
|
||||||
local dap = require("dap")
|
|
||||||
local term = require("nvterm.terminal")
|
local term = require("nvterm.terminal")
|
||||||
|
|
||||||
map("n", "<C-left>", "<C-o>", { desc = "LSP Back" })
|
map("n", "<C-left>", "<C-o>", { desc = "LSP Back" })
|
||||||
@ -38,12 +37,19 @@ map("n", "<tab>", "<Cmd>BufferNext<CR>", { desc = "Next tab" })
|
|||||||
map("n", "<S-tab>", "<Cmd>BufferPrevious<CR>", { desc = "Previous tab" })
|
map("n", "<S-tab>", "<Cmd>BufferPrevious<CR>", { desc = "Previous tab" })
|
||||||
|
|
||||||
-- dap
|
-- dap
|
||||||
|
local dap = require("dap")
|
||||||
|
|
||||||
map("n", "<leader>bb", dap.toggle_breakpoint, { desc = "Toggle breakpoint" })
|
map("n", "<leader>bb", dap.toggle_breakpoint, { desc = "Toggle breakpoint" })
|
||||||
map("n", "<F5>", dap.step_over, { desc = "Step over" })
|
map("n", "<F5>", dap.step_over, { desc = "Step over" })
|
||||||
map("n", "<F6>", dap.step_into, { desc = "Step into" })
|
map("n", "<F6>", dap.step_into, { desc = "Step into" })
|
||||||
map("n", "<F7>", dap.step_out, { desc = "Step out" })
|
map("n", "<F7>", dap.step_out, { desc = "Step out" })
|
||||||
map("n", "<F8>", dap.continue, { desc = "Continue" })
|
map("n", "<F8>", dap.continue, { desc = "Continue" })
|
||||||
|
|
||||||
|
-- bookmarks
|
||||||
|
local bm = require("bookmarks")
|
||||||
|
|
||||||
|
map("n", "<leader>m", bm.bookmark_toggle)
|
||||||
|
|
||||||
-- nvterm
|
-- nvterm
|
||||||
map("n", "<leader>t", function()
|
map("n", "<leader>t", function()
|
||||||
term.toggle("horizontal")
|
term.toggle("horizontal")
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
local gitsigns = require("gitsigns")
|
local gitsigns = require("gitsigns")
|
||||||
local dap = require("dap")
|
local dap = require("dap")
|
||||||
local dapui = require("dapui")
|
local dapui = require("dapui")
|
||||||
|
local bm = require("bookmarks")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
@ -83,6 +84,25 @@ return {
|
|||||||
|
|
||||||
{ name = "separator" },
|
{ name = "separator" },
|
||||||
|
|
||||||
|
{
|
||||||
|
name = " Bookmarks",
|
||||||
|
hl = "Exblue",
|
||||||
|
items = {
|
||||||
|
{
|
||||||
|
name = " List",
|
||||||
|
cmd = require("telescope").extensions.bookmarks.list,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name = " Toggle",
|
||||||
|
cmd = bm.bookmark_toggle,
|
||||||
|
rtxt = "<leader>m",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{ name = "separator" },
|
||||||
|
|
||||||
{
|
{
|
||||||
name = " Preview change",
|
name = " Preview change",
|
||||||
cmd = gitsigns.preview_hunk,
|
cmd = gitsigns.preview_hunk,
|
||||||
|
8
lua/plugins/bookmarks.lua
Normal file
8
lua/plugins/bookmarks.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
"tomasky/bookmarks.nvim",
|
||||||
|
-- after = "telescope.nvim",
|
||||||
|
event = "VimEnter",
|
||||||
|
config = function()
|
||||||
|
require("bookmarks").setup()
|
||||||
|
end,
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user