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
Add shebang detect #!/usr/bin/env -S nvim -l
for lua syntax
#12722
Comments
Sorry, is this for Neovim? |
It makes sense either way. A Lua file is a Lua file. |
sorry, don't get it... |
I might have misunderstood your question. I thought you were asking if the PR was misdirected and intended for NeoVim. If I understand the issue correctly any shebang line ending in nvim -l is specifying raw Lua content. So this makes sense to be included in Vim. I can create a PR tomorrow. |
sure, please go ahead. Thanks! |
Nvim specifies Lua scripts with the -l and -ll options so match nvim shebang lines with these options as as file type Lua. E.g., #!/usr/bin/env -S nvim -l Fixes vim#12722
Nvim specifies Lua scripts with the -l and -ll options so match nvim shebang lines with these options as as file type Lua. E.g., #!/usr/bin/env -S nvim -l Fixes vim#12722
Problem: Script filetype cannot be specified by shebang-line command args Solution: Capture command args and make them available for later testing E.g., the following are Lua scripts Fixes vim#12722
Problem: Script filetype cannot be specified by shebang-line command args Solution: Capture command args and make them available for later testing E.g., the following are Lua scripts #!/usr/bin/env -S nvim -l #!/usr/bin/pandoc --lua-filter Fixes vim#12722
nvim -l
can accept lua syntax:The text was updated successfully, but these errors were encountered: