main
Dominik Madarász 2024-11-11 12:57:16 +01:00
parent b7932fccf6
commit d2be3412cc
3 changed files with 14 additions and 4 deletions

View File

@ -6,7 +6,6 @@
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"copilot.vim": { "branch": "release", "commit": "87038123804796ca7af20d1b71c3428d858a9124" },
"go.nvim": { "branch": "master", "commit": "2153f9ee6178dfd625b1a874eab6399fd0a2d984" }, "go.nvim": { "branch": "master", "commit": "2153f9ee6178dfd625b1a874eab6399fd0a2d984" },
"guihua.lua": { "branch": "master", "commit": "d783191eaa75215beae0c80319fcce5e6b3beeda" }, "guihua.lua": { "branch": "master", "commit": "d783191eaa75215beae0c80319fcce5e6b3beeda" },
"harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" }, "harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" },

View File

@ -19,7 +19,7 @@ return require('lazy').setup({
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' } dependencies = { 'nvim-tree/nvim-web-devicons' }
}, },
'github/copilot.vim', -- 'github/copilot.vim',
{ {
'numToStr/Comment.nvim', 'numToStr/Comment.nvim',
opts = { opts = {

View File

@ -78,13 +78,24 @@ vim.api.nvim_set_keymap('n', '<A-Down>', '<C-w>j', { noremap = true, silent = tr
vim.api.nvim_set_keymap('n', '<A-Up>', '<C-w>k', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<A-Up>', '<C-w>k', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<A-Right>', '<C-w>l', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<A-Right>', '<C-w>l', { noremap = true, silent = true })
-- Resize splits with Ctrl+Shift+h/j/k/l
vim.api.nvim_set_keymap('n', '<S-Left>', ':vertical resize +2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<S-Down>', ':resize -2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<S-Up>', ':resize +2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<S-Right>', ':vertical resize -2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('t', '<S-Left>', '<C-\\><C-O>:vertical resize +2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('t', '<S-Down>', '<C-\\><C-O>:horizontal resize -2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('t', '<S-Up>', '<C-\\><C-O>:resize +2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('t', '<S-Right>', '<C-\\><C-O>:vertical resize -2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<S-Left>', ':vertical resize +2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<S-Down>', ':resize -2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<S-Up>', ':resize +2<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<S-Right>', ':vertical resize -2<CR>', { noremap = true, silent = true })
-- swap between windows -- swap between windows
vim.keymap.set("n", ";", "<C-w>w") vim.keymap.set("n", ";", "<C-w>w")
vim.keymap.set("v", ";", "<C-w>w") vim.keymap.set("v", ";", "<C-w>w")
vim.keymap.set("i", ";", "<C-w>w")
vim.api.nvim_set_keymap("t", "<A-m>", "<C-\\><C-O><C-w>w", { noremap = true, silent = true }) vim.api.nvim_set_keymap("t", "<A-m>", "<C-\\><C-O><C-w>w", { noremap = true, silent = true })
-- greatest remap ever -- greatest remap ever
vim.keymap.set("x", "<leader>p", [["_dP]]) vim.keymap.set("x", "<leader>p", [["_dP]])