small buff

main
Dominik Madarász 2024-11-18 11:30:00 +01:00
parent c270a9fc6f
commit 5d96ebb4ef
4 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# NeoVim config # NeoVim config
deps: ripgrep, tree-sitter, cmake, node.js (copilot) deps: ripgrep, tree-sitter, cmake

View File

@ -22,6 +22,8 @@ cmp.setup({
{name = 'treesitter'}, {name = 'treesitter'},
{name = 'nvim_lsp'}, {name = 'nvim_lsp'},
{name = 'copilot'}, {name = 'copilot'},
{name = 'path'},
{name = 'buffer'},
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
['<C-p>'] = cmp.mapping.select_prev_item(cmp_select), ['<C-p>'] = cmp.mapping.select_prev_item(cmp_select),

View File

@ -1,6 +1,5 @@
local builtin = require('telescope.builtin') local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>pf', builtin.find_files, {}) vim.keymap.set('n', '<C-p>', "<cmd>Telescope find_files hidden=true<CR>", {})
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
vim.keymap.set('n', '<leader>pg', builtin.git_files, {}) vim.keymap.set('n', '<leader>pg', builtin.git_files, {})
vim.keymap.set('n', '<leader>pb', builtin.buffers, {}) vim.keymap.set('n', '<leader>pb', builtin.buffers, {})
vim.keymap.set('n', '<C-b>', builtin.buffers, {}) vim.keymap.set('n', '<C-b>', builtin.buffers, {})

View File

@ -144,8 +144,6 @@ vim.api.nvim_set_keymap('v', '<S-Down>', ':resize -2<CR>', { noremap = true, sil
vim.api.nvim_set_keymap('v', '<S-Up>', ':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 }) 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("v", ";", "<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