mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feats: nvim, emacs, shell
* 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
This commit is contained in:
parent
da0cc1d6e8
commit
a506ee28ad
14 changed files with 120 additions and 31 deletions
13
tools/nvim/lua/keymaps/cmp_map.lua
Normal file
13
tools/nvim/lua/keymaps/cmp_map.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--- `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
|
||||
Loading…
Add table
Add a link
Reference in a new issue