-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform snippets are missing on package.json #385
Comments
I'm using LazyVim -> LuaSnip -> friendly-snippets and need to know how to enable the terraform snippets, as well. I know it can be done by editing package.json (I tried and it worked), but If there's a way to do this without adding it to package.json (ie, some lua code), that'd be fine with me. BTW, thank you @rafamadriz for a very useful plugin! :) |
Same issue as above. Manually set it works fine. |
Any update on this issue ? We could raise a PR to add necessary fix Best, |
Got same issue |
thank you! :) |
…et for vue update fix rafamadriz#385: add terraform snippets to package.json snprintf() snippet incorrectly inserts sprintf() body (c.json) improve function snips Make former `fund` (-> `fun`) more universal Also, make the prefixes more logical (c.json) Add _GNU_SOURCE snippet Snippet to enable GNU functions (c.json) Update GNU_SOURCE description Update the description to be more specific for newbies to C Fixed for range loop in gdscript add blade snippets (rafamadriz#374) * add blade snippets * fix json formatting Add rfv for React, compatible with Vite (rafamadriz#384) feat(global): Add UUID snippet (rafamadriz#386) remove extra spaces in deployment and pod snippets (rafamadriz#390) Reorder html5 document template (rafamadriz#393) The encoding `<meta charset="UTF-8>` is usually declared before any text-containing elements such as the `<title>`. p.s. Emmet follows this ordering too feat: add snippet for debugpy remote attach (rafamadriz#397) useful on remote debugging, especially on slurm feat(kubernetes): set default container (rafamadriz#399) * feat(kubernetes): set default container According to https://github.com/kubernetes/enhancements/blob/master/keps/sig-cli/2227-kubectl-default-container/README.md * feat(kubernetes): set default container for daemon set Added Github Alerts (rafamadriz#402) Added snippets for github alerts as in webpages Removes snippets for vue2 (rafamadriz#396) * vue2 is no longer supported as of December 31, 2023. feat: add new snippet vue fix: typo description reactive chore: change name file vue readable feat: add style.json, fix, refactoring snippet vue fix: choice vue style feat(editorconfig): add editorconfig snippets (rafamadriz#392) * feat(editorconfig): add editorconfig snippets feat(ruby): add binding.break snippet (rafamadriz#403) Add PureScript snippets (rafamadriz#401) * Add Purescript snippets add new snippet for vue (rafamadriz#404) * remove snippet vue 2 is dead * feat: add new snippet vue * fix: typo description reactive * chore: change name file vue readable * feat: add style.json, fix, refactoring snippet vue * fix: choice vue style fix: style tailwind aspec ratio fix: error refVueTs fix: snippet script.json style: indent script.json feat: add new snippet feat: add new snippet vue reset commit feat: add snippet, fix code, and indent chore: add snippet vue style: fix indent all file vue chore: add snippet vue chore: fix bind :to nuxtlink chore: add snippet script.json include js and ts chore: add snippet vue html chore: add defineModel to script.json chore: add new snippet feat: added vue snippet for nuxt and took typescript javascript snippet for vue Remove some none (rafamadriz#409) Co-authored-by: orion GONZALEZ (contractor) <orion.gonzalez@amadeus.com> feat: mod test (rafamadriz#414) - Adds the mod-test block snippet - Updates the `match` snippet to be more general todo instead of unimplemented (rafamadriz#415) feat(asciidoc): add snippets (rafamadriz#419) feat(markdown): use single space between columns in tables (rafamadriz#420) docs(readme): update github admonition syntax (rafamadriz#422) feat(gleam): add gleam snippets rafamadriz#418 (rafamadriz#423) - Add snippet support for Gleam. The snippets are taken from https://github.com/gleam-lang/vscode-gleam/blob/main/snippets.json - Minor edit in `package.json` feat: add snippets for most basic terraform blocks (rafamadriz#426) * feat: add basic terraform snippets * fix: remove periods in placeholder text fix(markdown): use correct placeholder values for table 5x2 (rafamadriz#421)
Hi there,
I'm using classic setup on my neovim, with Lazy as plugin manager, nvim-cmp as autocomplete, LuaSnip as snippets engine.
Here a quick extract of my lsp.lua that I initiate from my init.lua with a simple
require('lsp')
Snippets on markdown or even Python are working fine, however Terraform snippets seems empty
However, Terraform snippets seems empty
![image](https://private-user-images.githubusercontent.com/52102633/287527256-2ad5194b-b55c-464d-a7d4-76af5ca395f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzMDI1MDUsIm5iZiI6MTcyNTMwMjIwNSwicGF0aCI6Ii81MjEwMjYzMy8yODc1MjcyNTYtMmFkNTE5NGItYjU1Yy00NjRkLWE3ZDQtNzZhZjVjYTM5NWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE4MzY0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3ODhhZjk0NDFlNWE1ZjE3YWQ0ZDc2NTRkZmZhMzIwN2FjYjlmOTQ0Yjk2ZGI4NmFlYTRkMTRjZGY2NWQzMmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9yeeWYtck4cYhs6KbH-e1o93JlHOJoJC-6W5jBVaT5g)
After checking on
~/.local/share/nvim/lazy/friendly-snippets
files and checking logs with:lua require('luasnip').log.open()
command I found that Terraform snippets declaration could be missing from package.jsonHere the fix :
![image](https://private-user-images.githubusercontent.com/52102633/287527481-e515939e-5fc5-4bb6-8357-9dbad80c2c98.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzMDI1MDUsIm5iZiI6MTcyNTMwMjIwNSwicGF0aCI6Ii81MjEwMjYzMy8yODc1Mjc0ODEtZTUxNTkzOWUtNWZjNS00YmI2LTgzNTctOWRiYWQ4MGMyYzk4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE4MzY0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkyYjJiMjU3ZGE3NTcwNTFlZDFhYTM0MmQ2NThiMDc2OWJhZjE5NDE1NDVhZDdjYWU3ODRiNzk1ZjBmMjcwMzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.oTSq04AsRxd3jEKLkbfaFsEvnaV5-_txzvO_2fHxI6s)
I can raise a PR with the fix, let me know 🙏
Best,
JeSappelleRoot
The text was updated successfully, but these errors were encountered: