From 5d96ebb4ef1c1370b84bfa5ae0da8610928bf11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Mon, 18 Nov 2024 11:30:00 +0100 Subject: [PATCH] small buff --- README.md | 2 +- after/plugin/lsp.lua | 2 ++ after/plugin/telescope.lua | 3 +-- lua/zak/remap.lua | 2 -- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8212062..9bf4b72 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # NeoVim config -deps: ripgrep, tree-sitter, cmake, node.js (copilot) +deps: ripgrep, tree-sitter, cmake diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 7b5e947..8e18404 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -22,6 +22,8 @@ cmp.setup({ {name = 'treesitter'}, {name = 'nvim_lsp'}, {name = 'copilot'}, + {name = 'path'}, + {name = 'buffer'}, }, mapping = cmp.mapping.preset.insert({ [''] = cmp.mapping.select_prev_item(cmp_select), diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index b64b6d6..f9a078f 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -1,6 +1,5 @@ local builtin = require('telescope.builtin') -vim.keymap.set('n', 'pf', builtin.find_files, {}) -vim.keymap.set('n', '', builtin.find_files, {}) +vim.keymap.set('n', '', "Telescope find_files hidden=true", {}) vim.keymap.set('n', 'pg', builtin.git_files, {}) vim.keymap.set('n', 'pb', builtin.buffers, {}) vim.keymap.set('n', '', builtin.buffers, {}) diff --git a/lua/zak/remap.lua b/lua/zak/remap.lua index cba9c3e..449f919 100644 --- a/lua/zak/remap.lua +++ b/lua/zak/remap.lua @@ -144,8 +144,6 @@ vim.api.nvim_set_keymap('v', '', ':resize -2', { noremap = true, sil vim.api.nvim_set_keymap('v', '', ':resize +2', { noremap = true, silent = true }) vim.api.nvim_set_keymap('v', '', ':vertical resize -2', { noremap = true, silent = true }) -- swap between windows -vim.keymap.set("n", ";", "w") -vim.keymap.set("v", ";", "w") vim.api.nvim_set_keymap("t", "", "w", { noremap = true, silent = true }) -- greatest remap ever