Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

utilyre/spoon.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spoon.nvim

A collection of smart luasnip snippets.

Table of Content

Motivation

Although there are a good plenty of snippet plugins to use, none of them satisfied me. I wanted something that uses all luasnip capabilities to enable me to be my most productive.

Hopefully this plugin will achieve its goal and become the most efficient snippet collection ever!

Supported Languages

  • General Snippets aka all (available everywhere)
  • Lua
  • JavaScript
  • JavaScript React

Installation

vim-plug:

Plug 'l3mon4d3/luasnip'
Plug 'utilyre/spoon.nvim'

packer.nvim:

use {
  "utilyre/spoon.nvim",
  requires = { "l3mon4d3/luasnip" },
}

Configuration

local spoon = require("spoon.nvim")

spoon.setup({
  preferSingleQuotes = true,
  langs = {
    all = true,
    lua = true,
    javascript = true,
    javascriptreact = true,
  },
})

TODO

  • An option to either use single quotes or double quotes in snippets
  • Language specific configuration

Note: There are so many languages out there and I'm no expert in those, so any help is appreciated. 🤝

I'm currently working on:

  1. JavaScript
  2. Lua