akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding snippet support

jeevanpranav02 opened this issue · comments

I have been using this plugin for quite long time and it is a great plugin for Flutter development. The only thing that is bothering me is that I have been searching for flutter snippets to work with nvim and I thought of using awesome-flutter-snippets but I don't know how to make it work.

commented

@jeevanpranav02 snippets are actually out of scope for this plugin there are already a lot of great plugin to use snippets and plugins that provide snippets

@jeevanpranav02 you can use a snippet plugin to have your own snippets, or use community snippets like awesome-flutter-snippets in neovim. There are a lot of snippet plugins available like: Luasnip, Snipmate, Ultisnips, etc.

Luasnip allows you to load VSCode style snippets really easily. Check the docs here. You can install awesome-flutter-snippets as a plugin (specifying it in your plugin manager configuration should do it), and let Luasnip load those snippets.

@akinsho @Thesmader Thanks mate! I'll look into LuaSnip and I my friend suggested this plugin vim-vsnip. I try both and use which better suits me.