From 9efb96a5014e167697423f9d4c3f2e4bc82ee3b5 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Mon, 8 Jan 2024 23:17:06 +0100 Subject: [PATCH] mappings --- lua/plugins/completions.lua | 3 +-- lua/plugins/lsp.lua | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index f571f15..37bfae5 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -27,9 +27,8 @@ return { mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping.scroll_docs(-4), [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping.complete(), [""] = cmp.mapping.abort(), - [""] = cmp.mapping.confirm({ select = true }), + [""] = cmp.mapping.confirm({ select = false }), }), sources = cmp.config.sources({ { name = "nvim_lsp" }, diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 01b8de0..27e9c86 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -38,6 +38,7 @@ return { vim.keymap.set("n", "rn", vim.lsp.buf.rename, opts) vim.keymap.set({ "n", "v" }, "ca", vim.lsp.buf.code_action, opts) vim.keymap.set("n", "gr", vim.lsp.buf.references, opts) + vim.keymap.set({ "n", "i" }, "", vim.lsp.buf.hover, opts) vim.keymap.set("n", "f", function() vim.lsp.buf.format({ async = true }) end, opts)