Qol and looks

This commit is contained in:
2024-03-17 15:45:01 +01:00
parent 76b4eb8628
commit f8737d0ab1
3 changed files with 129 additions and 179 deletions

View File

@@ -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,
}