quangnguyen30192 / cmp-nvim-ultisnips

nvim-cmp source for ultisnips
Apache License 2.0
145 stars 19 forks source link

How to install with Vim-Plug #7

Closed krillin666 closed 3 years ago

krillin666 commented 3 years ago

Thanks for the fix, any idea how one should proceed to install this with Vim Plug ?

quangnguyen30192 commented 3 years ago

This plugin is just a source extension of https://github.com/hrsh7th/nvim-cmp, which is written in lua. Then using with packer is recommended.

You could use wbthomason/packer.nvim and Vim plug at the same time without any conflicts (I'm using packer.nvim and vim plug at the same time as well)

But, we can use vim vim plug as below

Plug 'quangnguyen30192/cmp-nvim-ultisnips'
Plug 'hrsh7th/nvim-cmp'
lua require 'cmp-config'

You will need to create a lua file under ~/.config/nvim/lua/cmp-config.lua and put everything in the config function from the README

config = function()
...
end
quangnguyen30192 commented 3 years ago

Or you could use lua heredoc right in vim file as the guy here is doing

krillin666 commented 3 years ago

Thank you for the help !

DinkyTrady commented 2 years ago

@quannguyen30192 the comment in reddit was removed.

quangnguyen30192 commented 2 years ago

Hey @DinkyTrady do you want to install with vimplug?

DinkyTrady commented 2 years ago

@quangnguyen30192 yes, but now i can setup and configure it.