more natural LSP selection

This commit is contained in:
Oliver Ladner 2024-02-03 22:14:23 +01:00
commit 40d21b0364
2 changed files with 9 additions and 3 deletions

View file

@ -103,8 +103,12 @@ formatters installed here are used via `conform.nvim`.
| Formatter | Markdown, YAML | **prettier** | Formats Markdown tables | n/a |
| Formatter | Lua | **stylua** | Formats Lua | n/a |
## Key bindings
See CHEATSHEET.MD
## Open issues/TODOs
- ollama integration <https://github.com/nomnivore/ollama.nvim>
- <https://github.com/folke/trouble.nvim>
- <https://github.com/axkirillov/hbac.nvim>
- solution to search-replace visual blocks

View file

@ -38,8 +38,10 @@ return {
["<C-u>"] = cmp.mapping.scroll_docs(-4),
["<C-d>"] = cmp.mapping.scroll_docs(4),
["<C-l>"] = cmp.mapping.confirm({ select = true }), -- accept LSP autocompletion
["<C-p>"] = cmp.mapping.select_prev_item(cmp_select),
["<C-n>"] = cmp.mapping.select_next_item(cmp_select),
--["<C-p>"] = cmp.mapping.select_prev_item(cmp_select),
["<C-k>"] = cmp.mapping.select_prev_item(cmp_select),
--["<C-n>"] = cmp.mapping.select_next_item(cmp_select),
["<C-j>"] = cmp.mapping.select_next_item(cmp_select),
["<C-f>"] = cmp_action.luasnip_jump_forward(),
["<C-b>"] = cmp_action.luasnip_jump_backward(),
}),