added snacks terminal handling

This commit is contained in:
Radu Macocian (admac)
2026-04-30 15:20:12 +02:00
parent 483b04ed68
commit dab574ff79
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
local neogit = require('neogit') local neogit = require('neogit')
vim.keymap.set("n", "<leader>gs", function() vim.keymap.set("n", "<leader>gs", function()
neogit.open({ kind= "floating" }) neogit.open()
end end
) )
+6 -2
View File
@@ -86,5 +86,9 @@ local function toggle_term(fullscreen)
end end
end end
vim.keymap.set({ "n", "t" }, "<leader>tt", function() toggle_term(false) end, { desc = "Terminal (split)" }) vim.keymap.set("n", "<leader>tt", function() toggle_term(false) end, { desc = "Terminal (split)" })
vim.keymap.set({ "n", "t" }, "<leader>tT", function() toggle_term(true) end, { desc = "Terminal (fullscreen)" }) vim.keymap.set("n", "<leader>tT", function() toggle_term(true) end, { desc = "Terminal (fullscreen)" })
vim.keymap.set("t", "<C-t>", function()
local w = find_term_win()
if w then vim.api.nvim_win_close(w, true) end
end, { desc = "Hide terminal" })
+1 -1
View File
@@ -5,7 +5,7 @@ local M = {}
-- Adapter (netcoredbg) -- Adapter (netcoredbg)
dap.adapters.coreclr = { dap.adapters.coreclr = {
type = "executable", type = "executable",
command = "/home/radu/.local/share/nvim/mason/bin/netcoredbg", command = vim.fn.expand("$HOME/.local/share/nvim/mason/bin/netcoredbg"),
args = { "--interpreter=vscode" }, args = { "--interpreter=vscode" },
} }