]> git.rmz.io Git - dotfiles.git/commitdiff
nvim/coding: don't select first entry on completion
authorSamir Benmendil <me@rmz.io>
Wed, 12 Apr 2023 20:54:14 +0000 (21:54 +0100)
committerSamir Benmendil <me@rmz.io>
Tue, 31 Oct 2023 23:08:51 +0000 (23:08 +0000)
This allows tab to select and more importantly insert the first
completion.

nvim/lua/plugins/coding.lua

index 6e8adc99e7e8c08c5e32beb558b393a3556d7176..263071dbc127fb61a2fd31b7d178df6ffbe2a95c 100644 (file)
@@ -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, {