snippet-converter.nvim
packer.nvim
snippet-converter.nvim | packer.nvim | |
---|---|---|
12 | 180 | |
166 | 7,603 | |
- | - | |
3.1 | 3.4 | |
8 months ago | about 2 months ago | |
Lua | Lua | |
Mozilla Public License 2.0 | MIT License |
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.
snippet-converter.nvim
-
How to write `pretty_print`ed json data into a json file?
Afaik there is nothing built into Neovim that can do this. However, I have required this for one of my plugins so I created it. Here is the link: https://github.com/smjonas/snippet-converter.nvim/blob/main/lua/snippet_converter/utils/json_utils.lua. Feel free to use it!
-
UltiSnips to LuaSnip converter
Also, my snipmate parser is probably a good starting point since the grammar is relatively simple: https://github.com/smjonas/snippet-converter.nvim/blob/main/lua/snippet_converter/core/snipmate/body_parser.lua
-
ultisnip or vsnip?
Moved to LuaSnip with the aid of snippert-converter, and it's good. No performance issues, easy to setup with nvim-cmp and works well. Would recommend.
-
[Help] Convert LaTeX UltiSnips Snippets to LuaSnip
Please check out my plugin snippet-converter.nvim which will hopefully save you a lot of time! I have put in a lot of effort to handle as many edge cases as possible so you don't have to worry about line breaks and stuff. Cheers! (Note that this plugin currently only supports vscode_luasnip as a target format not "native" LuaSnip snippets in Lua but VSCode-style snippets should cover 99% of your use cases).
-
From UltiSnips to LuaSnip
Nice article! Luasnip also supports snippet priorities btw so you don't need to delete them. You could also automate the conversion of the snippets using snippet-converter.nvim (hope no one minds a bit of self-advertising here ;). That should surely speed things up a bit.
-
Can I use ultisnip and luasnip together with nvim-cmp
No you would need to convert the snippets to VSCode or SnipMate format first. You can do that using a plugin like snippet-converter.nvim (disclaimer: I am the author of that plugin). Simply set the output format to vscode_luasnip or snipmate_luasnip.
-
How to use the below given plugin in neovim
Shameless plug: you could also try my plugin https://github.com/smjonas/snippet-converter.nvim which can handle many more edge cases :)
-
Initial release of snippet-converter.nvim
I am excited to announce the release of my first own plugin snippet-converter.nvim that I've been working on for the last couple of months!
-
Luasnips, how to get around the awful syntax?
You can try my plugin snippet-converter.nvim, it has not been officially released yet but it's already functional. Sorry for the self-promotion but this seems to solve your problem :) It allows you to write your snippets in UltiSnips format and convert them to VSCode snippets.
-
Make LuaSnip to disable certain snippets from Friendly Snippet?
There does not seem to be a good way to do this at the moment. However, you might be interested in my plugin snippet-converter.nvim that I've been working on for a few months now - the issue you described is one of the use cases of the plugin! It's already usable but there is still some stuff that need to be worked on... If that's done I'll definitely make an announcement on this sub (hopefully in the next weeks) :)
packer.nvim
-
thethethe.nvim - neovim friendly autocorrect plugin
packer
-
Help Enablin Powerline Font for Lightline in Kitty NeoVim
-- Check if Packer.nvim is already installed if fn.empty(fn.glob(install_path)) > 0 then -- If not installed, clone it from GitHub fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) -- Load Packer.nvim vim.cmd [[packadd packer.nvim]] return true end return false end
-
Installing neovim on windows 10 does not work (no really, it doesn't)
local ensure_packer = function() local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) vim.cmd [[packadd packer.nvim]] return true end return false end
-
Issue with treesitter highlights, disappears after 5 seconds each time
local fn = vim.fn -- Automatically install packer local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then PACKER_BOOTSTRAP = fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path, }) print("Installing packer close and reopen Neovim...") vim.cmd([[packadd packer.nvim]]) end -- Autocommand that reloads neovim whenever you save the plugins.lua file vim.cmd([[ augroup packer_user_config autocmd! autocmd BufWritePost plugins.lua source | PackerSync augroup end ]]) -- Use a protected call so we don't error out on first use local status_ok, packer = pcall(require, "packer") if not status_ok then return end -- Have packer use a popup window packer.init({ display = { open_fn = function() return require("packer.util").float({ border = "rounded" }) end, }, }) -- Install your plugins here return packer.startup(function(use) -- My plugins here use({ "wbthomason/packer.nvim" }) -- Have packer manage itself use({ "nvim-lua/plenary.nvim" }) -- Useful lua functions used by lots of plugins use({ "windwp/nvim-autopairs" }) -- Autopairs, integrates with both cmp and treesitter use({ "numToStr/Comment.nvim" }) use({ "JoosepAlviste/nvim-ts-context-commentstring" }) use({ "kyazdani42/nvim-web-devicons" }) use({ "akinsho/bufferline.nvim" }) use({ "moll/vim-bbye" }) use({ "nvim-lualine/lualine.nvim" }) use({ "akinsho/toggleterm.nvim" }) use({ "ahmedkhalf/project.nvim" }) use({ "lewis6991/impatient.nvim" }) use({ "lukas-reineke/indent-blankline.nvim" }) use({ "goolord/alpha-nvim" }) use("folke/which-key.nvim") -- Colorschemes use({ "folke/tokyonight.nvim" }) use("lunarvim/darkplus.nvim") use("bluz71/vim-moonfly-colors") use("fcpg/vim-fahrenheit") use("rainglow/vim") use("wojciechkepka/vim-github-dark") use("gavinok/spaceway.vim") use({"mcchrish/zenbones.nvim", requires = "rktjmp/lush.nvim"}) use({ "ellisonleao/gruvbox.nvim" }) -- Gruvbox theme -- LSP use({ "neovim/nvim-lspconfig" }) -- enable LSP use({ "williamboman/nvim-lsp-installer" }) -- simple to use language server installer use({ "jose-elias-alvarez/null-ls.nvim" }) -- for formatters and linters -- Telescope use({ "nvim-telescope/telescope.nvim" }) -- Treesitter use("nvim-treesitter/nvim-treesitter", {run = ':TSUpdate'}) use("nvim-treesitter/nvim-treesitter-context") use("nvim-treesitter/playground") -- Editor plugins use({ "karb94/neoscroll.nvim" }) -- Git use({ "lewis6991/gitsigns.nvim" }) -- LSP Zero use { 'VonHeikemen/lsp-zero.nvim', requires = { -- LSP Support {'neovim/nvim-lspconfig'}, -- Required {'williamboman/mason.nvim'}, -- Optional {'williamboman/mason-lspconfig.nvim'}, -- Optional -- Autocompletion {'hrsh7th/nvim-cmp'}, -- Required {'hrsh7th/cmp-buffer'}, {'hrsh7th/cmp-path'}, {'hrsh7th/cmp-nvim-lua'}, {'hrsh7th/cmp-nvim-lsp'}, -- Required {'L3MON4D3/LuaSnip'}, -- Required {'rafamadriz/friendly-snippets'}, } } -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins if PACKER_BOOTSTRAP then require("packer").sync() end end)
-
Editing init.lua with lua_ls on gives "Undefined global : vim" ?
require('packer').startup(function(use) use 'https://github.com/wbthomason/packer.nvim' use 'https://github.com/neovim/nvim-lspconfig' end)
- error message whenever I write a file
-
[Help] Packer.nvim
git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim
-
Pyright Won't Let me Quit Python Files
``` vim.g.maplocalleader = " " vim.g.mapleader = " " local ensure_packer = function() local fn = vim.fn local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }) vim.cmd([[packadd packer.nvim]]) return true end return false end
- [Neovim] Gestionnaire de packages basé à Lua
What are some alternatives?
vim-react-snippets - Useful snippets for developing in React (Javascript and Typescript)
vim-plug - :hibiscus: Minimalist Vim Plugin Manager
nvim-typora - Bindings for Typora's Markdown in Neovim
lazy.nvim - 💤 A modern plugin manager for Neovim
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vusted - A busted wrapper for testing neovim plugin
nvim-lspconfig - Quickstart configs for Nvim LSP
lualine.nvim - A blazing fast and easy to configure neovim statusline plugin written in pure lua.
paq-nvim - 🌚 Neovim package manager
luacheck - A tool for linting and static analysis of Lua code.
gruvbox.nvim - Lua port of the most famous vim colorscheme