From 962e06b0d7005a1ff5cdfb91776a241209991684 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sun, 7 Aug 2022 01:04:37 +0200 Subject: [PATCH] Add path source for completion --- conf/nvim/lua/plugins.lua | 3 ++- conf/nvim/lua/plugins/cmp.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/nvim/lua/plugins.lua b/conf/nvim/lua/plugins.lua index 9ee68c4..d20b868 100644 --- a/conf/nvim/lua/plugins.lua +++ b/conf/nvim/lua/plugins.lua @@ -25,7 +25,8 @@ require "paq" { -- autocompletion plugin 'hrsh7th/nvim-cmp'; - 'hrsh7th/cmp-nvim-lsp'; + 'hrsh7th/cmp-nvim-lsp'; -- LSP source + 'hrsh7th/cmp-path'; -- path source -- vim lint when it is not possible withlsp 'mfussenegger/nvim-lint'; diff --git a/conf/nvim/lua/plugins/cmp.lua b/conf/nvim/lua/plugins/cmp.lua index 2b409a2..36416c2 100644 --- a/conf/nvim/lua/plugins/cmp.lua +++ b/conf/nvim/lua/plugins/cmp.lua @@ -67,5 +67,6 @@ cmp.setup { }, sources = { { name = 'nvim_lsp' }, + { name = 'path' }, }, }