added esc support on nvim terminal, fix debugger crash and alpha problem
This commit is contained in:
1 parent
7b01a29ee3
commit
08315f1b68
4 files changed
+16
-14
No files matched your search
@@ -5,6 +5,9 @@ vim.keymap.set({"n", "v"}, "<C-j>", "18j", {desc = "Fast scroll down"})
|
||||
vim.keymap.set({"n", "v"}, "<C-k>", "18k", {desc = "Fast scroll up"})
|
||||
vim.keymap.set("n", "<Leader>h", "<cmd>:noh<CR>", {desc = "Remove current highlighting"})
|
||||
|
||||
-- Exit terminal mode easily with Escape
|
||||
vim.keymap.set('t', '<Esc>', [[<C-\><C-n>]], { desc = 'Exit terminal mode' })
|
||||
|
||||
vim.keymap.set("v", "<Leader>y", '"+y', {desc='Yank to "+ register for external copy/paste'})
|
||||
|
||||
--CODE/LSP
|
||||
|
||||
@@ -178,9 +178,12 @@ return {
|
||||
id = "cppdbg",
|
||||
type = "executable",
|
||||
command = cpptools_path,
|
||||
-- For Windows subprocess tracking stability
|
||||
-- Must stay detached (the default) so the adapter + gdb + debuggee
|
||||
-- run in their own process group. With detached=false on Windows
|
||||
-- they share Neovim's console group, so terminating the session
|
||||
-- (dap.terminate) sends the Ctrl-C/terminate signal to Neovim too.
|
||||
options = {
|
||||
detached = not is_windows,
|
||||
detached = true,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -38,9 +38,6 @@ return {
|
||||
dashboard.button("l", " Lazy settings", ":Lazy<cr>"),
|
||||
dashboard.button("q", " quit nvim", ":qa<cr>"),
|
||||
}
|
||||
local handle = io.popen('fortune')
|
||||
local fortune = handle:read("*a")
|
||||
handle:close()
|
||||
dashboard.section.footer.val = {
|
||||
[["we define the boundaries of reality;]],
|
||||
[[they don't define us."]],
|
||||
|
||||
Reference in new issue
Block a user