rip laptop

This commit is contained in:
2025-09-19 11:41:04 +02:00
parent d2f8546e00
commit bb7c4d0b33
4 changed files with 10 additions and 6 deletions

View File

@ -3,18 +3,18 @@ local map = vim.keymap.set
local opts = { noremap = true, silent = true }
-- Alt+1 → Project view (NvimTree)
vim.keymap.set("n", "<A-1>", function ()
Snacks.explorer()
vim.keymap.set("n", "<A-1>", function()
Snacks.explorer()
end, { noremap = true, silent = true })
-- Ctrl+Y → Delete current line
map("n", "<C-y>", "dd", opts)
-- Ctrl+Q → Close window / scope (like JetBrains splits default)
map("n", "<C-q>", "<C-w>q", opts)
map("n", "<C-w", "<C-w>q", opts)
-- Ctrl+W → Close buffer/file
map("n", "<C-w>", "<cmd>bd<cr>", opts)
-- map("n", "<C-w>", "<cmd>bd<cr>", opts)
-- Triple Shift (Shift+Shift+Shift) → "Search Everywhere"
-- Neovim cant detect triple-modifier presses, so we fake it.
@ -22,4 +22,5 @@ map("n", "<C-w>", "<cmd>bd<cr>", opts)
map("n", "<leader><leader>", "<cmd>Telescope find_files<cr>", opts)
map("n", "<leader><leader><leader>", "<cmd>Telescope live_grep<cr>", opts)
map("n", "<A-Left>", "<C-w>h", opts)
map("n", "<A-Right>", "<C-w>l", opts)
map("n", "<A-Right>", "<C-w>l", opts)