From 40d21b0364a7fcecaa9c7a94c740ff8603b2a6d1 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Sat, 3 Feb 2024 22:14:23 +0100 Subject: [PATCH] more natural LSP selection --- README.md | 6 +++++- lua/weeheavy/plugins/lsp/lsp-zero.lua | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bc29071..a2a8481 100644 --- a/README.md +++ b/README.md @@ -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 -- - +- solution to search-replace visual blocks diff --git a/lua/weeheavy/plugins/lsp/lsp-zero.lua b/lua/weeheavy/plugins/lsp/lsp-zero.lua index 3e0b422..eddc2b3 100644 --- a/lua/weeheavy/plugins/lsp/lsp-zero.lua +++ b/lua/weeheavy/plugins/lsp/lsp-zero.lua @@ -38,8 +38,10 @@ return { [""] = cmp.mapping.scroll_docs(-4), [""] = cmp.mapping.scroll_docs(4), [""] = cmp.mapping.confirm({ select = true }), -- accept LSP autocompletion - [""] = cmp.mapping.select_prev_item(cmp_select), - [""] = cmp.mapping.select_next_item(cmp_select), + --[""] = cmp.mapping.select_prev_item(cmp_select), + [""] = cmp.mapping.select_prev_item(cmp_select), + --[""] = cmp.mapping.select_next_item(cmp_select), + [""] = cmp.mapping.select_next_item(cmp_select), [""] = cmp_action.luasnip_jump_forward(), [""] = cmp_action.luasnip_jump_backward(), }),