nvim: remove left over files from friendly-snippets
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2021 Rafael Madriz
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
# Friendly Snippets
|
|
||||||
|
|
||||||
Snippets collection for a set of different programming languages for faster development.
|
|
||||||
|
|
||||||
The only goal is to have one community driven repository for all kinds of
|
|
||||||
snippets in all programming languages, this way you can have it all in one
|
|
||||||
place.
|
|
||||||
|
|
||||||
### Usage
|
|
||||||
|
|
||||||
This collection of snippets should work with any plugin that supports loading
|
|
||||||
vscode snippets. Like for example:
|
|
||||||
|
|
||||||
- [vim-vsnip](https://github.com/hrsh7th/vim-vsnip)
|
|
||||||
- [LuaSnip](https://github.com/L3MON4D3/LuaSnip)
|
|
||||||
- [coc-snippets](https://github.com/neoclide/coc-snippets)
|
|
||||||
|
|
||||||
### Add snippets from a framework to a filetype.
|
|
||||||
|
|
||||||
There's extra snippets included in this repo but they are not added by default,
|
|
||||||
since it would be irrelevant for people not using those frameworks. See
|
|
||||||
[`snippets/frameworks`](https://github.com/rafamadriz/friendly-snippets/tree/main/snippets/frameworks)
|
|
||||||
|
|
||||||
For example: if you want to add rails snippets to ruby.
|
|
||||||
|
|
||||||
With LuaSnip:
|
|
||||||
|
|
||||||
```lua
|
|
||||||
require'luasnip'.filetype_extend("ruby", {"rails"})
|
|
||||||
```
|
|
||||||
|
|
||||||
This method is going to work globally on all open buffers with `ruby` filetype.
|
|
||||||
Alternatively you can do `set filetype=ruby.rails` so it only works on a
|
|
||||||
specific buffer, but this is going to mess up with syntax highlighting.
|
|
||||||
|
|
||||||
With vim-vsnip:
|
|
||||||
|
|
||||||
```viml
|
|
||||||
let g:vsnip_filetypes.ruby = ['rails']
|
|
||||||
```
|
|
||||||
|
|
||||||
For more info related to this change see [#88](https://github.com/rafamadriz/friendly-snippets/issues/88)
|
|
||||||
|
|
||||||
### Install
|
|
||||||
|
|
||||||
Use your plugin manager of choice, e.g.
|
|
||||||
|
|
||||||
```lua
|
|
||||||
-- Packer
|
|
||||||
use "rafamadriz/friendly-snippets"
|
|
||||||
|
|
||||||
-- Plug
|
|
||||||
Plug 'rafamadriz/friendly-snippets'
|
|
||||||
|
|
||||||
-- If you're using coc.nvim, you can use:
|
|
||||||
CocInstall https://github.com/rafamadriz/friendly-snippets@main
|
|
||||||
```
|
|
||||||
|
|
||||||
#### HTML
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
#### JS
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
##### NOTE: Using [nvim-compe](https://github.com/hrsh7th/nvim-compe) with [vim-vsnip](https://github.com/hrsh7th/vim-vsnip) on the videos.
|
|
||||||
|
|
||||||
## TODO
|
|
||||||
|
|
||||||
- Add all included snippets to the
|
|
||||||
[Wiki](https://github.com/rafamadriz/friendly-snippets/wiki).
|
|
||||||
|
|
||||||
## Thanks to all contributors
|
|
||||||
|
|
||||||
<a href="https://github.com/rafamadriz/friendly-snippets/graphs/contributors">
|
|
||||||
<img src="https://contrib.rocks/image?repo=rafamadriz/friendly-snippets" />
|
|
||||||
</a>
|
|
||||||
|
|
||||||
## Credits
|
|
||||||
|
|
||||||
A good portion of the snippets have been forked from the following repositories:
|
|
||||||
|
|
||||||
- [vscode-standardjs-snippets](https://github.com/capaj/vscode-standardjs-snippets)
|
|
||||||
- [python-snippets](https://github.com/cstrap/python-snippets)
|
|
||||||
- [vs-snippets](https://github.com/kitagry/vs-snippets)
|
|
||||||
- [Wscats/html-snippets](https://github.com/Wscats/html-snippets)
|
|
||||||
- [Harry-Ross/vscode-c-snippets](https://github.com/Harry-Ross/vscode-c-snippets)
|
|
||||||
- [vscode-jekyll-snippets](https://github.com/edheltzel/vscode-jekyll-snippets)
|
|
||||||
- [vscode-fortran-support](https://github.com/krvajal/vscode-fortran-support)
|
|
||||||
- [vscode_cobol](https://github.com/spgennard/vscode_cobol)
|
|
||||||
- [VSCode-LaTeX-Snippets](https://github.com/JeffersonQin/VSCode-LaTeX-Snippets)
|
|
||||||
- [vscode-react-javascript-snippets](https://github.com/dsznajder/vscode-react-javascript-snippets)
|
|
||||||
- [honza/vim-snippets - Verilog](https://github.com/honza/vim-snippets/blob/master/snippets/verilog.snippets)
|
|
||||||
Reference in New Issue
Block a user