From 659651aa5411ffa9833f371740e5842f57176ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Wed, 13 Nov 2024 14:06:52 +0100 Subject: [PATCH] init cmp --- after/plugin/harpoon.lua | 6 +++--- after/plugin/lsp.lua | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/after/plugin/harpoon.lua b/after/plugin/harpoon.lua index 09aded2..e8cada9 100644 --- a/after/plugin/harpoon.lua +++ b/after/plugin/harpoon.lua @@ -4,6 +4,6 @@ local ui = require("harpoon.ui") vim.keymap.set("n", "a", mark.add_file) vim.keymap.set("n", "", ui.toggle_quick_menu) -vim.keymap.set("n", "", function() ui.nav_file(1) end) -vim.keymap.set("n", "", function() ui.nav_file(2) end) -vim.keymap.set("n", "", function() ui.nav_file(3) end) +vim.keymap.set("n", "", function() ui.nav_file(1) end) +vim.keymap.set("n", "", function() ui.nav_file(2) end) +vim.keymap.set("n", "", function() ui.nav_file(3) end) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index a284a20..20ce50e 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -23,6 +23,9 @@ cmp.setup({ {name = 'cmp-buffer'}, {name = 'cmp-path'}, {name = 'copilot'}, + {name = 'buffer'}, + {name = 'path'}, + {name = 'treesitter'}, }, mapping = cmp.mapping.preset.insert({ [''] = cmp.mapping.select_prev_item(cmp_select),