From: Samir Benmendil Date: Wed, 12 Apr 2023 20:54:14 +0000 (+0100) Subject: nvim/coding: don't select first entry on completion X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/e40fee4264d28483903e4e7c8bfa352ae685370e?ds=inline nvim/coding: don't select first entry on completion This allows tab to select and more importantly insert the first completion. --- diff --git a/nvim/lua/plugins/coding.lua b/nvim/lua/plugins/coding.lua index 6e8adc9..263071d 100644 --- a/nvim/lua/plugins/coding.lua +++ b/nvim/lua/plugins/coding.lua @@ -23,7 +23,7 @@ return { local luasnip = require("luasnip") opts.completion = vim.tbl_extend("force", opts.completion, { - completeopt = "menu,menuone,noinsert", + completeopt = "menu,menuone,noselect", }) --TODO: review if I want to keep any of LazyVim's mappings opts.mapping = vim.tbl_extend("force", opts.mapping, {