Comments (7)
Hi :)
So far this sounds all like it should at least show the snippets..
Could you post your logs? :lua ls.log.open()
opens it, best clear it and then start one new session, maybe check if there's some error reported, and set the loglevel high enough before running load()
(:lua ls.log.set_loglevel("info")
)
from luasnip.
I'm getting an error when trying to access ls.log: E5108: Error executing lua [string ":lua"]:1: attempt to index global 'ls' (a nil value)
.
Edit: obviously this is not related to the issue, but I'll take a look at this before I can give a proper answer 🥲
from luasnip.
dammit, s/ls/require("luasnip")/
, sorry about that
from luasnip.
Oh, my bad. That was quite obvious.
So, after looking into the logs, turns out I need to define a package.json
so I can import it. I was under the impression that it would load all json files as snippets.
It's working perfectly now. Thank you very much for the support @L3MON4D3!
from luasnip.
Ahhh alright, happy the log helped by itself :D
from luasnip.
Can luasnip automatically load .json file based on file name instead of parsing from the package.json file?
from luasnip.
We don't have that, but if you want to avoid the package.json
and don't mind having all your snippets in one big file you can use the vscode-standalone-loader (search for "standalone" in DOC.md)
from luasnip.
Related Issues (20)
- Error during startup HOT 1
- Nonempty node and SELECT mode in insert node text HOT 4
- checkhealth jsregexp not found even if installed HOT 7
- Issue with custom `vim.opt.keymap` and first typed characters in snippet. HOT 1
- Previous character is always included in the selection when jumping to nodes HOT 2
- Snippets do not exit at exit node or i(0) HOT 1
- Error when invoking "cleanup()" function HOT 5
- [Question] would this be possible with Luasnip? HOT 2
- Windows: friendly snippets not loaded HOT 6
- Snippets work only in lua files, but not the others HOT 1
- Ability to disabled `realpath` to handle symlinked snippets HOT 1
- Libuv reloading of symlinked snippets HOT 1
- escape [ from fmt HOT 4
- Understand treesitter filetypes HOT 5
- What is the next step after installing jsregexp using luarocks? HOT 2
- [Windows] auto complete doesn't pop up even the config is correct HOT 5
- Snippet Expansion not working with tsserver HOT 1
- Cursor position outside buffer, in function 'nvim_win_set_cursor' HOT 5
- [feature request] parse simple condition flags in snipmate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luasnip.