friendly-snippets
ultisnips
Our great sponsors
friendly-snippets | ultisnips | |
---|---|---|
48 | 64 | |
1,661 | 7,425 | |
- | - | |
8.7 | 4.9 | |
10 days ago | about 1 month ago | |
Lua | Python | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
friendly-snippets
-
LazyVim: How to turn default plugins off?
Those definitely seem to be coming from friendly-snippets, so it seems like it's not being disabled. You can verify this with the :Lazy command to bring up the lazy.nvim menu then checking log or debug to see what is loaded, when, and why.
-
Benchmarking some of my favourite neovim plugins over time
Here you go :), tested with friendly-snippets lazy loaded (Non lazy-loaded is 500ms)
-
NormalNvim 2.0: Officially released
Snippets for code comments.
-
Enabling python's snippets.
I am trying to add snippets for python, i have LuaSnip and friendly-snippets installed, but for some reason it does not load the snippets. This is how i load the plugins:
-
PR with TSdoc support sent to friendly-snippets
I just sent [this PR](https://github.com/rafamadriz/friendly-snippets/pull/301) that implements the [full TSdoc specification](https://typedoc.org/guides/overview/) in [friently-snippets](https://github.com/rafamadriz/friendly-snippets). In practice what you get is autocompletion in your typescript comments, which should be a nice of life improvement for most typescript developers.
-
friendly-snippets VS luasnip-latex-snippets.nvim - a user suggested alternative
2 projects | 18 May 2023
-
Does anyone know how to quickly create class, interface, record, ...etc in java with nvim
You mean snippets? If yes, you can try Luasnip and friendly-snippets with nvim-cmp and here's the setup guide. Hope it helps
-
Multi-Line completion with nvim-cmp
For example Luasnip with (I guess) friendly-snippets has multi line snippets defined by default. And you can use luasnip with nvim-cmp (read the docs or I guess there’s a YouTube tutorial)
-
How to I find default snippets
If you copied the config in the readme, then the snippet come from friendly-snippets.
-
How can I get Better react intergration.
I would recommend lsp-zero, the tsserver lsp provides code actions for auto import. There is auto import when confirming completion as well, I've seen it working with cmp, however I can't remember If that is out of the box behaviour. For snippets, I would go with LuaSnip - It's very versatile snippet engine and it integrates well with many snippet formats. There are specifically react es7 snippet definitions in the friendly-snippets repo which can be used by LuaSnip - https://github.com/rafamadriz/friendly-snippets/blob/main/snippets/javascript/react-es7.json
ultisnips
-
LaTeX and Neovim for technical note-taking
I always like people's LaTeX-based note taking setups. I'm a mathematician, so I write a lot of LaTeX too. (And I use vim, so I really like vim+Latex workflows).
It's interesting that this post (or rather, the later post that discusses this) talks about the advantages of UltiSnips. The well-known vim-LaTeX posts written by Gilles Castel (RIP) relied pivotally on UltiSnips.
It's not just that UltiSnips is a snippet engine. There are many of those (including LuaSnip, the other snippet engine mentioned in the OP series of articles). It's that UltiSnips can dispatch arbitrary expressions to short python code sections, and python has a great scientific library. For example, it's trivial to write a `sympy` snippet that will simplify or compute a given expression and write the output in latex for you.
But UltiSnips works *terribly* with neovim [1] [2]. Why? Because UltiSnips uses python, and neovim's python interface is 100x slower than vim's python interface. There are design decisions for this and I'm not trying to say that neovim is bad. I use both vim and neovim. But I use vim+UltiSnips+vimtex for writing LaTeX.
LuaSnip has interpolation too. I suppose it would be possible to write more code that calls from LuaSnip to a system like sympy (or other). But that's work. On the other hand, I think it takes a true power user to actually want or use the fancy interpolation functions.
[1]: https://github.com/SirVer/ultisnips/issues/974
-
Looking for tutorials / Hello world projects to create Neovim plugins using Pynvim
I think in-the-wild examples like Ultisnips deoplete semshi (although they are advanced and somewhat complex) would also be good examples to learn how one can use python for writing plugins.
- UltiSnips – Snippet Solution for Vim
-
lsp-zero v2.x is now available
I didn't know lsp-zero, but this integration seems just for me except for that I am using UltiSnips instead of luasnip. Just curious how difficult do you think it is to add UltiSnips integration along with cmp-nvim-ultisnips?
- Minimalistic neovim/vim with batteries included ?
- How to solve this? (Ultisnippets plugin)
-
Awkwardness when typing in '\n' or '\t' or (...) [...] etc. -- (Have others noticed this too?) -- (is there a better way?)
If you use UltiSnips, you can just do this:
-
Vim + LaTeX
Snipets or code completion can be done in a number of different ways, and how that is configured will depend on what method you use. In the blog he uses the vim plugin ultisnips. You'll find details on configuration for that in that link.
-
Python36.dll not found
Heyo, I've been trying to get UltiSnips and YouCompleteMe to work, however, I've ran into a bit of a problem. The python36.dll library does not seem to exist for UltiSnips, and YouCompleteMe cannot locate python at all (screenshots at bottom).
- SirVer/ultisnips: UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
What are some alternatives?
LuaSnip - Snippet Engine for Neovim written in Lua.
vim-vsnip - Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
snippets.nvim
completion-nvim - A async completion framework aims to provide completion to neovim's built in LSP written in Lua
lspkind.nvim - vscode-like pictograms for neovim lsp completion items
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
cmp_luasnip - luasnip completion source for nvim-cmp
emmet-vim - emmet for vim: http://emmet.io/
language-server-protocol - Defines a common protocol for language servers.
nvim-lspconfig - Quickstart configs for Nvim LSP