rip laptop
This commit is contained in:
		| @ -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 can’t 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) | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user