small buff
parent
c270a9fc6f
commit
5d96ebb4ef
|
@ -1,4 +1,4 @@
|
|||
# NeoVim config
|
||||
|
||||
deps: ripgrep, tree-sitter, cmake, node.js (copilot)
|
||||
deps: ripgrep, tree-sitter, cmake
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@ cmp.setup({
|
|||
{name = 'treesitter'},
|
||||
{name = 'nvim_lsp'},
|
||||
{name = 'copilot'},
|
||||
{name = 'path'},
|
||||
{name = 'buffer'},
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-p>'] = cmp.mapping.select_prev_item(cmp_select),
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<C-p>', "<cmd>Telescope find_files hidden=true<CR>", {})
|
||||
vim.keymap.set('n', '<leader>pg', builtin.git_files, {})
|
||||
vim.keymap.set('n', '<leader>pb', builtin.buffers, {})
|
||||
vim.keymap.set('n', '<C-b>', builtin.buffers, {})
|
||||
|
|
|
@ -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-Right>', ':vertical resize -2<CR>', { noremap = true, silent = true })
|
||||
-- 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 })
|
||||
|
||||
-- greatest remap ever
|
||||
|
|
Loading…
Reference in New Issue