mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
* nvim: Add copilot completions * nvim: grug-far buffer won't show lualine & winbar now * nvim: remove obsidian.nvim * nvim: luasnip now works * emacs: more keymaps in org-mode * emacs: start customizing leader keys * shell: Add more ls aliases * shell: Add apt alias in fish
13 lines
749 B
Lua
13 lines
749 B
Lua
--- `map` default for `cmp.mapping`
|
|
local map = function(map)
|
|
return {
|
|
{ keys = "<C-n>", cmd = map.select_next_item(), opts = { desc = "Select next completion item" } },
|
|
{ keys = "<C-p>", cmd = map.select_prev_item(), opts = { desc = "Select previous completion item" } },
|
|
{ keys = "<C-f>", cmd = map.confirm({ select = true }), opts = { desc = "Confirm completion" } },
|
|
{ keys = "<Tab>", cmd = map.confirm({ select = true }), opts = { desc = "Confirm completion" } },
|
|
{ keys = "<C-Space>", cmd = map.complete(), opts = { desc = "Trigger completion" } },
|
|
{ keys = "<C-b>", cmd = map.abort(), opts = { desc = "Abort completion" } },
|
|
}
|
|
end
|
|
|
|
return map
|