From 4c4efe91919fd9cefdde32796fc530ea44a3be45 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 2 Feb 2021 19:07:21 +0200 Subject: [PATCH] Add some completion-nvim keybinds --- home/.config/nvim/lua/keybinds.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/.config/nvim/lua/keybinds.lua b/home/.config/nvim/lua/keybinds.lua index 72681694..25234f6c 100644 --- a/home/.config/nvim/lua/keybinds.lua +++ b/home/.config/nvim/lua/keybinds.lua @@ -12,8 +12,11 @@ map('n', '', 'Files') map('n', '', 'Rg') -- Completion +-- Navigate completions with tab and shift tab map('i', '', 'pumvisible() ? "\\" : "\\"', {expr = true}) map('i', '', 'pumvisible() ? "\\" : "\\"', {expr = true}) +-- Trigger completion +map('i', '', '(completion_trigger)', {silent = true, expr = true}) -- Navigate between buffers map('n', '', ':bn', {silent = true})