Bohdan's terminal configuration
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

added DAP UI

bpavuk 41f01bbf 8cdd702e

+64 -17
+1
nvim/.config/nvim/init.lua
··· 31 31 32 32 require "options" 33 33 require "nvchad.autocmds" 34 + require "preferences" 34 35 35 36 vim.schedule(function() 36 37 require "mappings"
+5 -3
nvim/.config/nvim/lazy-lock.json
··· 11 11 "conform.nvim": { "branch": "master", "commit": "372fc521f8421b7830ea6db4d6ea3bae1c77548c" }, 12 12 "crates.nvim": { "branch": "main", "commit": "2c8f4fab02e3e9ea42c6ad9b547e4207a914a397" }, 13 13 "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, 14 - "gitsigns.nvim": { "branch": "main", "commit": "056d5ea359efe35c4e25e2ebcc255117ac86500d" }, 14 + "gitsigns.nvim": { "branch": "main", "commit": "5624b5ebe6988c75d3f4eb588b9f31f3847a721c" }, 15 15 "indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" }, 16 16 "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, 17 17 "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, ··· 21 21 "nvim-autopairs": { "branch": "master", "commit": "4d74e75913832866aa7de35e4202463ddf6efd1b" }, 22 22 "nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" }, 23 23 "nvim-dap": { "branch": "master", "commit": "8df427aeba0a06c6577dc3ab82de3076964e3b8d" }, 24 + "nvim-dap-ui": { "branch": "master", "commit": "73a26abf4941aa27da59820fd6b028ebcdbcf932" }, 24 25 "nvim-lspconfig": { "branch": "master", "commit": "4bc481b6f0c0cf3671fc894debd0e00347089a4e" }, 26 + "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, 25 27 "nvim-tree.lua": { "branch": "master", "commit": "ea5097a1e2702b4827cb7380e7fa0bd6da87699c" }, 26 - "nvim-treesitter": { "branch": "master", "commit": "94ea4f436d2b59c80f02e293466c374584f03b8c" }, 28 + "nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" }, 27 29 "nvim-web-devicons": { "branch": "master", "commit": "2c2b4eafce6cdd0cb165036faa17396eff18f847" }, 28 30 "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, 29 - "render-markdown.nvim": { "branch": "main", "commit": "fa92c30f59afa980708e110824ff0933bc0954e5" }, 31 + "render-markdown.nvim": { "branch": "main", "commit": "b4016e812c9a18784d8c1c6b4f0b2858a4cf502d" }, 30 32 "rustaceanvim": { "branch": "master", "commit": "e9c5aaba16fead831379d5f44617547a90b913c7" }, 31 33 "telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" }, 32 34 "tmux.nvim": { "branch": "main", "commit": "2c1c3be0ef287073cef963f2aefa31a15c8b9cd8" },
+16
nvim/.config/nvim/lua/configs/dap_ui.lua
··· 1 + local dapui = require "dapui" 2 + dapui.setup() 3 + 4 + dap.listeners.before.attach.dapui_config = function() 5 + dapui.open() 6 + end 7 + dap.listeners.before.launch.dapui_config = function() 8 + dapui.open() 9 + end 10 + dap.listeners.before.event_terminated.dapui_config = function() 11 + dapui.close() 12 + end 13 + dap.listeners.before.event_exited.dapui_config = function() 14 + dapui.close() 15 + end 16 +
+29 -14
nvim/.config/nvim/lua/mappings.lua
··· 3 3 -- add yours here 4 4 5 5 local map = vim.keymap.set 6 - local tmux = require("tmux") 7 - local dap = require("dap") 6 + local tmux = require "tmux" 7 + local dap = require "dap" 8 8 9 9 map("n", ";", ":", { desc = "CMD enter command mode" }) 10 10 map("i", "jk", "<ESC>") ··· 12 12 vim.lsp.buf.rename() 13 13 end, { desc = "Rename the symbol at cursor" }) 14 14 15 - 16 15 -- tmux navigation 17 - map("n", "<C-h>", function() tmux.move_left() end) 18 - map("n", "<C-j>", function() tmux.move_bottom() end) 19 - map("n", "<C-k>", function() tmux.move_top() end) 20 - map("n", "<C-l>", function() tmux.move_right() end) 21 - 22 - -- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>") 16 + map("n", "<C-h>", function() 17 + tmux.move_left() 18 + end) 19 + map("n", "<C-j>", function() 20 + tmux.move_bottom() 21 + end) 22 + map("n", "<C-k>", function() 23 + tmux.move_top() 24 + end) 25 + map("n", "<C-l>", function() 26 + tmux.move_right() 27 + end) 23 28 24 29 -- DAP 25 - map("n", "<leader>dba", function() dap.toggle_breakpoint() end, { desc = "Toggle breakpoint" }) 26 - map("n", "<leader>dbc", function() dap.continue() end, { desc = "Continue debugging" }) 27 - map("n", "<leader>dbso", function() dap.step_over() end, { desc = "Step over" }) 28 - map("n", "<leader>dbsi", function() dap.step_into() end, { desc = "Step into" }) 29 - 30 + map("n", "<leader>dba", function() 31 + dap.toggle_breakpoint() 32 + end, { desc = "Toggle breakpoint" }) 33 + map("n", "<leader>dbc", function() 34 + dap.continue() 35 + end, { desc = "Continue debugging" }) 36 + map("n", "<leader>dbso", function() 37 + dap.step_over() 38 + end, { desc = "Step over" }) 39 + map("n", "<leader>dbsi", function() 40 + dap.step_into() 41 + end, { desc = "Step into" }) 42 + map("n", "<leader>dbsO", function() 43 + dap.step_out() 44 + end, { desc = "Step out" })
+10
nvim/.config/nvim/lua/plugins/dap.lua
··· 2 2 { 3 3 "mfussenegger/nvim-dap", 4 4 }, 5 + { 6 + "rcarriga/nvim-dap-ui", 7 + dependencies = { 8 + "mfussenegger/nvim-dap", 9 + "nvim-neotest/nvim-nio", 10 + }, 11 + config = function() 12 + require "configs.dap_ui" 13 + end, 14 + }, 5 15 }
+3
nvim/.config/nvim/lua/preferences.lua
··· 1 + vim.fn.sign_define("DapBreakpoint", { text = "🟥", texthl = "", linehl = "", numhl = "" }) 2 + vim.fn.sign_define("DapStopped", { text = "▶️", texthl = "", linehl = "", numhl = "" }) 3 +