From 7830e9b65a4f013a55d1390f4470d843c172f797 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sat, 9 Oct 2021 10:48:51 +0200 Subject: ... --- .config/nvim/lua/opts.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua index 3696789..079e74d 100644 --- a/.config/nvim/lua/opts.lua +++ b/.config/nvim/lua/opts.lua @@ -18,11 +18,6 @@ local t = function(str) return vim.api.nvim_replace_termcodes(str, true, true, true) end -local check_back_space = function() - local col = vim.fn.col(".") - 1 - return col == 0 or vim.fn.getline("."):sub(col, col):match("%s") ~= nil -end - cmp.setup { snippet = { expand = function(args) @@ -55,8 +50,9 @@ cmp.setup { end, { "i", "s", }), }, sources = { - { name = 'ultisnips' }, { name = 'nvim_lsp' }, + { name = 'ultisnips' }, + { name = 'buffer' }, }, } -- cgit v1.2.3-70-g09d2