vim-vsnip
vim-vsnip copied to clipboard
Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
I use vim-vsnip in combination with nvim-cmp and found that sometimes when I'm in a snippet and use a completion with special chars the snippet gets deactivated. So I can...
I know this is the default behavior. But most of the friendly snippets and emmet does not have a $0 in their snippet. I would like vsnip to stop at...
👋🏻 I've used `:VsnipOpen` to create a new `~/.vsnip/...` example, but I'm not sure of what to configure to get the list of available Snippets showing in my autocomplete menu...
Bug with https://github.com/hrsh7th/vim-vsnip/blob/7fde9c0b6878a62bcc6d2d29f9a85a6616032f02/autoload/vsnip/session.vim#L133 When using `set selection=exclusive` with snippet `${1:FOO}\n${2:bar}` will result `oo\n` selected. The fix on coc.nvim https://github.com/neoclide/coc.nvim/commit/f3022726153a67e245ac8879d9b5f431a1664e95
I don't like every snipped provided by friendly-snippets, e.g. `log` in typescript. I cannot override it by placing the one I like better in `~/.vsnip/typescript.json`. Is there any other mechanism...
For example: ``` for (let index = 0; index < array.length; index++) { const element = array[index]; } ``` My first selection will be `inde`, but not `index`. Then I...
When you create an init in a python class, you have a variable number or variables that you define. Something like: ``` class Person: def __init__(self, arg1, arg2 ...): ......
Having these nearly identical snippets: ```json { "Let": { "prefix": ["let"], "body": ["${1:private }let ${2:name}${3:: Type}${4: = ${5:decl}}"] }, "Var": { "prefix": ["var"], "body": ["${1:private }var ${2:name}${3:: Type}${4: = ${5:decl}}"]...
Reference: https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/lsp-extensions.md#snippet-textedit Reference: https://github.com/hrsh7th/nvim-cmp/issues/353#issuecomment-942925708 Reference: https://github.com/simrat39/rust-tools.nvim/issues/74 I'm not sure if something like this already exists in vsnip, but it would be cool if it was supported