Compare commits
2
Commits
afb5895e7d
...
0d79f8485b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d79f8485b | ||
|
|
79f7d5801c |
No files matched your search
@@ -45,6 +45,9 @@ require("lazy").setup({
|
|||||||
})
|
})
|
||||||
vim.cmd("colorscheme " .. colScheme.name);
|
vim.cmd("colorscheme " .. colScheme.name);
|
||||||
vim.api.nvim_set_hl(0, "alphaheader", {fg = "#3661cf" })
|
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
|
--setup colour indents
|
||||||
local highlight = {
|
local highlight = {
|
||||||
|
|||||||
@@ -170,7 +170,10 @@ return {
|
|||||||
executable = {
|
executable = {
|
||||||
command = codelldb_path,
|
command = codelldb_path,
|
||||||
args = {"--port", "${port}"},
|
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 = {
|
dap.adapters.cppvsdbg = {
|
||||||
type = 'server',
|
type = "server",
|
||||||
port = "${port}",
|
port = "${port}",
|
||||||
executable = {
|
executable = {
|
||||||
command = codelldb_path,
|
command = codelldb_path,
|
||||||
args = {"--port", "${port}"},
|
args = { "--port", "${port}" },
|
||||||
detached = false,
|
detached = true,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- 3. Platform-agnostic Launcher Configuration
|
-- 3. Platform-agnostic Launcher Configuration
|
||||||
|
|||||||
@@ -20,5 +20,29 @@ return {
|
|||||||
sync_install = false,
|
sync_install = false,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { 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