From 2c277ee846240327582a7ffdecd6cc16d7d029d2 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sun, 26 Jun 2022 12:59:50 +0200 Subject: [PATCH] add cmp treesitter --- lua/my_plugins.lua | 1 + lua/setup/cmp.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/lua/my_plugins.lua b/lua/my_plugins.lua index 25a6c1f..234367d 100644 --- a/lua/my_plugins.lua +++ b/lua/my_plugins.lua @@ -93,6 +93,7 @@ return require('packer').startup(function() { 'f3fora/cmp-spell', after = 'nvim-cmp' }, { 'hrsh7th/cmp-emoji', after = 'nvim-cmp' }, { 'hrsh7th/cmp-cmdline', after = 'nvim-cmp' }, + { 'ray-x/cmp-treesitter', after = 'nvim-cmp'} }, config = get_setup('cmp'), }) diff --git a/lua/setup/cmp.lua b/lua/setup/cmp.lua index 2936411..28ae822 100644 --- a/lua/setup/cmp.lua +++ b/lua/setup/cmp.lua @@ -72,6 +72,7 @@ cmp.setup({ sources = { { name = 'luasnip' }, { name = 'nvim_lsp' }, + { name = 'treesitter' }, { name = 'buffer' }, { name = 'nvim_lua' }, { name = 'look' },