Qol and looks
This commit is contained in:
@@ -47,6 +47,10 @@ return {
|
||||
luasnip.lsp_expand(args.body)
|
||||
end,
|
||||
},
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
["<C-p>"] = cmp.mapping.select_prev_item(), -- previous suggestion
|
||||
["<C-n>"] = cmp.mapping.select_next_item(), -- next suggestion
|
||||
@@ -68,5 +72,12 @@ return {
|
||||
}),
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set({ "i", "s" }, "<S-Tab>", function()
|
||||
luasnip.jump(1)
|
||||
end, { silent = true })
|
||||
-- vim.keymap.set({ "i", "s" }, "<C-Tab>", function()
|
||||
-- luasnip.jump(-1)
|
||||
-- end, { silent = true })
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user