From f075233d4ae15f2c70eb51d74351010c4abf2439 Mon Sep 17 00:00:00 2001 From: Rikuoh Date: Sat, 11 Nov 2023 10:57:00 +0900 Subject: [PATCH] =?UTF-8?q?Enter=E3=81=A7confirm=E3=81=95=E3=81=9B?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=8B=87=E6=B0=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 15b825b..3caa271 100644 --- a/init.lua +++ b/init.lua @@ -464,6 +464,7 @@ require('jaq-nvim').setup{ sh = 'sh %', ruby = 'ruby %', java = 'java %', + javascript = 'node %', } }, @@ -528,7 +529,7 @@ local lspkind = require('lspkind') [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete(), [''] = cmp.mapping.abort(), - [''] = cmp.mapping.confirm({ select = true }), + [''] = cmp.mapping.confirm({ select = false }), }), formatting = { @@ -540,9 +541,9 @@ local lspkind = require('lspkind') }, sources = cmp.config.sources({ - { name = 'nvim_lsp', max_item_count = 7, keyword_length = 1}, + { name = 'nvim_lsp', max_item_count = 7, keyword_length = 2}, { name = 'vsnip', max_item_count = 7, keyword_length = 2}, - { name = 'nvim_lsp_signature_help', max_item_count = 7, keyword_length = 1}, + { name = 'nvim_lsp_signature_help', max_item_count = 7, keyword_length = 2}, { name = 'calc' }, { name = 'buffer', max_item_count = 7, keyword_length = 2 }, })