jdhao / nvim-config

A modern Neovim configuration with full battery for Python, Lua, C++, Markdown, LaTeX, and more...
MIT License
3.56k stars 526 forks source link

LuaSnips on jdhao/nvim-config #196

Closed Herk2 closed 1 year ago

Herk2 commented 1 year ago

I have just started experimenting with your vim-config and would like to know if it’s possible to work with LuaSnips, in addition to UltiSnips, in your nvim-config.

jdhao commented 1 year ago

do you want to use LuaSnips together with Ultisnips or only LuaSnips?

If together, I do not think it makes sense. If you only want to LuaSnip, just install it and uninstall Ultisnips. You also to need to adjust nvim-cmp settings, since it has configs related to snippet plugin (see here)

Herk2 commented 1 year ago

I would like to do both together - to compare & contrast and get a better understanding thereby.  However, I don’t have to do both on the same device.  I can do Ultisnips on my MacVim and LuaSnips with your vim-config.

Thank you very much for your help and the heads up to the nvim-cmp settings adjustment issue.

Best wishes.

Herk On Jun 7, 2023, 9:44 PM +0700, jdhao @.***>, wrote:

do you want to use LuaSnips together with Ultisnips or only LuaSnips? If together, I do not think it makes sense. If you only want to LuaSnip, just install it and uninstall Ultisnips. You also to need to adjust nvim-cmp settings, since it has configs related to snippet plugin (see here) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jdhao commented 1 year ago

if you want to do both, then you need to use if else condition for the install (in plugins.lua) and also for cmp config. It is not hard to adjust if you know a little bit lua.