init cmp
parent
73920b0bd0
commit
659651aa54
|
@ -4,6 +4,6 @@ local ui = require("harpoon.ui")
|
||||||
vim.keymap.set("n", "<leader>a", mark.add_file)
|
vim.keymap.set("n", "<leader>a", mark.add_file)
|
||||||
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
|
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
|
vim.keymap.set("n", "<C-S-h>", function() ui.nav_file(1) end)
|
||||||
vim.keymap.set("n", "<C-j>", function() ui.nav_file(2) end)
|
vim.keymap.set("n", "<C-S-j>", function() ui.nav_file(2) end)
|
||||||
vim.keymap.set("n", "<C-k>", function() ui.nav_file(3) end)
|
vim.keymap.set("n", "<C-S-k>", function() ui.nav_file(3) end)
|
||||||
|
|
|
@ -23,6 +23,9 @@ cmp.setup({
|
||||||
{name = 'cmp-buffer'},
|
{name = 'cmp-buffer'},
|
||||||
{name = 'cmp-path'},
|
{name = 'cmp-path'},
|
||||||
{name = 'copilot'},
|
{name = 'copilot'},
|
||||||
|
{name = 'buffer'},
|
||||||
|
{name = 'path'},
|
||||||
|
{name = 'treesitter'},
|
||||||
},
|
},
|
||||||
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),
|
||||||
|
|
Loading…
Reference in New Issue