This commit is contained in:
newbie 2024-01-10 23:12:51 +08:00
parent 9bbc7ba77f
commit ec42df6ac5

View File

@ -131,16 +131,15 @@ return {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
dependencies = { dependencies = {
'hrsh7th/cmp-nvim-lsp', -- { name = 'nvim_lua' } 'hrsh7th/cmp-nvim-lsp', -- { name = 'nvim_lua' }
'hrsh7th/cmp-buffer', -- { name = 'buffer' }, 'hrsh7th/cmp-buffer', -- { name = 'buffer' },
'hrsh7th/cmp-path', -- { name = 'path' } 'hrsh7th/cmp-path', -- { name = 'path' }
'hrsh7th/cmp-cmdline', -- { name = 'cmdline' } 'hrsh7th/cmp-cmdline', -- { name = 'cmdline' }
'hrsh7th/vim-vsnip', 'hrsh7th/vim-vsnip',
'hrsh7th/cmp-vsnip', 'hrsh7th/cmp-vsnip',
'onsails/lspkind-nvim', 'onsails/lspkind-nvim',
}, },
config = function() config = function()
G.g.vsnip_snippet_dir = G.fn.stdpath("config") .. "/sinppets/"
local has_words_before = function() local has_words_before = function()
unpack = unpack or table.unpack unpack = unpack or table.unpack
local line, col = unpack(G.api.nvim_win_get_cursor(0)) local line, col = unpack(G.api.nvim_win_get_cursor(0))