LuaSnip
LuaSnip copied to clipboard
Snippet Engine for Neovim written in Lua.
I have recently come across an issue at the interface between LuaSnip and Cmp Plugins: ```lua use "hrsh7th/nvim-cmp" use "hrsh7th/cmp-buffer" use "saadparwaiz1/cmp_luasnip" use({"L3MON4D3/LuaSnip"}) ``` Snippet: ```lua s({trig="bf", dscr="\textbf{}"}, { t("\\textbf{"),...
### Discussed in https://github.com/L3MON4D3/LuaSnip/discussions/716 Originally posted by **molleweide** January 6, 2023 (I tried the "transfer" feature and assumed that the existing discussion would be removed...) ## Proposed solution After digging...
I've noticed that autosnippets sometimes get triggered when using `` in insert mode. This causes yanked text to come out differently when pasted via ``. Here is a minimal example:...
Hi, I have a feature request about conditional snippets Normal conditions already exist: https://github.com/L3MON4D3/LuaSnip/blob/663d54482b11bca1ce94f56993b9f6ab485a13dc/DOC.md?plain=1#L164 These decide wether to show and/or expand at all. I would like it if I could...
I'm using home-manager to manage my dotfiles and most of my configs are just symlinks to files in nix store. Recently I updated luasnip (wasn't updating it half the year)...
I added friendly snippets by the documentation ``` lua require("luasnip.loaders.from_vscode").lazy_load() ``` it works on my WSL enviornment but it doesn't work on Windows build of nvim, Then I changed the...
Let say I have an if statement where the cursor is currently inside the first condition like; ``` if x == 1 { } ``` of the cursor at the...
The jinja snippets file from vim-snippets has the following two snippets: ```snippets snippet % {% ${1} %} snippet %% {% ${1:tag_name} %} ${0} {% end$1 %} ``` At least with...
I got the error msg as below when using a snippet with callbacks ```text Error 20:36:58 msg_show.lua_error E5108: Error executing lua [string ":lua"]:1: Cursor position outside buffer stack traceback:...
Standard snippets (`snippetType = "snippet"`) work correctly, but once I set `snippetType = "autosnippet"`, the snippet stops working completely. I have set `ls.config.set_config({ enable_autosnippets = true })` but it just...