1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-23 00:18:00 +00:00

[neovim] Improve dap experience

This commit is contained in:
Daniel Carrillo 2022-11-05 13:30:40 +01:00
parent 418c42bda2
commit f25a72ce2a
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
3 changed files with 27 additions and 3 deletions

View File

@ -7,7 +7,10 @@ bufferline.setup({
options = { options = {
close_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions" close_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions"
right_mouse_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions" right_mouse_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions"
offsets = { { filetype = "neo-tree", text = "", padding = 1 } }, offsets = {
{ filetype = "neo-tree", text = "", padding = 1 },
{ filetype = "dapui_scopes", text = "", padding = 1 },
},
separator_style = "thin", -- | "thick" | "thin" | { 'any', 'any' }, separator_style = "thin", -- | "thick" | "thin" | { 'any', 'any' },
}, },
highlights = { highlights = {

View File

@ -14,7 +14,28 @@ if not dap_install_status_ok then
end end
dap_install.config("python", {}) dap_install.config("python", {})
dapui.setup({}) dapui.setup({
layouts = {
{
elements = {
{ id = "scopes", size = 0.25 },
"watches",
"stacks",
"breakpoints",
},
size = 50, -- columns
position = "left",
},
{
elements = {
"repl",
-- "console",
},
size = 0.25, -- 25% of total lines
position = "bottom",
},
},
})
vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "DiagnosticSignError", linehl = "", numhl = "" }) vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "DiagnosticSignError", linehl = "", numhl = "" })

View File

@ -11,8 +11,8 @@ require("plugins.lualine")
require("plugins.illuminate") require("plugins.illuminate")
require("plugins.indentline") require("plugins.indentline")
require("plugins.lsp") require("plugins.lsp")
require("plugins.dap")
require("plugins.go") require("plugins.go")
require("plugins.dap")
require("plugins.outline") require("plugins.outline")
require("plugins.wilder") require("plugins.wilder")
require("plugins.trouble") require("plugins.trouble")