From 58ed71f87062baa90cde979d5eb46b8c31168af7 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 27 Jul 2022 21:08:03 +0800 Subject: [PATCH] use emmylua-nvim instead of cmp-nvim-lua for better completion --- lua/plugins.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 2b72926..fe83d93 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -30,7 +30,7 @@ require("packer").startup({ -- nvim-cmp completion sources use {"hrsh7th/cmp-nvim-lsp", after = "nvim-cmp"} - use {"hrsh7th/cmp-nvim-lua", after = "nvim-cmp"} + -- use {"hrsh7th/cmp-nvim-lua", after = "nvim-cmp"} use {"hrsh7th/cmp-path", after = "nvim-cmp"} use {"hrsh7th/cmp-buffer", after = "nvim-cmp"} use { "hrsh7th/cmp-omni", after = "nvim-cmp" } @@ -356,6 +356,8 @@ require("packer").startup({ requires = { 'kyazdani42/nvim-web-devicons' }, config = [[require('config.nvim-tree')]] } + + use { 'ii14/emmylua-nvim', ft = 'lua' } end, config = { max_jobs = 16,