debugger fix, treesitter bindings, rosepine notify fix
This commit is contained in:
1 parent
e079c87128
commit
79f7d5801c
3 files changed
+47
-5
No files matched your search
@@ -45,6 +45,9 @@ require("lazy").setup({
|
||||
})
|
||||
vim.cmd("colorscheme " .. colScheme.name);
|
||||
vim.api.nvim_set_hl(0, "alphaheader", {fg = "#3661cf" })
|
||||
if (colScheme.name == "rose-pine") then
|
||||
vim.api.nvim_set_hl(0, "NotifyBackground", { bg = "#232136" })
|
||||
end
|
||||
|
||||
--setup colour indents
|
||||
local highlight = {
|
||||
|
||||
@@ -170,7 +170,10 @@ return {
|
||||
executable = {
|
||||
command = codelldb_path,
|
||||
args = {"--port", "${port}"},
|
||||
detached = false,
|
||||
-- Keep the spawned server (and any inferior it launches) off
|
||||
-- Neovim's console group so terminating a session can't take
|
||||
-- Neovim down on Windows. Matches the cppvsdbg adapter above.
|
||||
detached = true,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,14 +190,26 @@ return {
|
||||
},
|
||||
}
|
||||
|
||||
-- Route MSVC `cppvsdbg` launch configs (as VS/msbuild launch.json
|
||||
-- generates) to codelldb. We deliberately do NOT use Microsoft's vsdbg:
|
||||
-- its license permits use only within Visual Studio / VS Code. codelldb
|
||||
-- is LLVM/LLDB-based (Apache-2.0) and has a native PDB reader, so it can
|
||||
-- debug MSVC/msbuild binaries without that restriction.
|
||||
--
|
||||
-- codelldb is a TCP `server` adapter, so terminating/disconnecting
|
||||
-- talks over a socket and can't broadcast a console CTRL event to
|
||||
-- Neovim the way the gdb-backed cppdbg path does. detached=true keeps
|
||||
-- the spawned server (and the inferior it launches) off Neovim's
|
||||
-- console group too -- the original `detached = false` is what still
|
||||
-- let a disconnect take Neovim down.
|
||||
dap.adapters.cppvsdbg = {
|
||||
type = 'server',
|
||||
type = "server",
|
||||
port = "${port}",
|
||||
executable = {
|
||||
command = codelldb_path,
|
||||
args = {"--port", "${port}"},
|
||||
detached = false,
|
||||
}
|
||||
args = { "--port", "${port}" },
|
||||
detached = true,
|
||||
},
|
||||
}
|
||||
|
||||
-- 3. Platform-agnostic Launcher Configuration
|
||||
|
||||
@@ -20,5 +20,29 @@ return {
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
|
||||
|
||||
-- Enable the textobjects extension
|
||||
textobjects = {
|
||||
move = {
|
||||
enable = true,
|
||||
set_jumps = true, -- Add jumps to the jumplist (:h jumplist)
|
||||
|
||||
goto_next_start = {
|
||||
["]]"] = { query = "@function.outer", desc = "Next function definition start" },
|
||||
["]c"] = { query = "@class.outer", desc = "Next class definition start" },
|
||||
},
|
||||
goto_previous_start = {
|
||||
["[["] = { query = "@function.outer", desc = "Previous function definition start" },
|
||||
["[c"] = { query = "@class.outer", desc = "Previous class definition start" },
|
||||
},
|
||||
goto_next_end = {
|
||||
["]f"] = { query = "@function.outer", desc = "Next function definition end" },
|
||||
},
|
||||
goto_previous_end = {
|
||||
["[f"] = { query = "@function.outer", desc = "Previous function definition end" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user