mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
vim-patch:9.0.1620: Nix files are not recognized from the hashbang line (#23961)
Problem: Nix files are not recognized from the hashbang line.
Solution: Add a hashbang check. (issue vim/vim#12507)
19548c6a74
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -773,6 +773,7 @@ let s:script_checks = {
|
||||
\ 'expect': [['#!/path/expect']],
|
||||
\ 'gnuplot': [['#!/path/gnuplot']],
|
||||
\ 'make': [['#!/path/make']],
|
||||
\ 'nix': [['#!/path/nix-shell']],
|
||||
\ 'pike': [['#!/path/pike'],
|
||||
\ ['#!/path/pike0'],
|
||||
\ ['#!/path/pike9']],
|
||||
@@ -819,6 +820,7 @@ let s:script_env_checks = {
|
||||
\ 'scheme': [['#!/usr/bin/env VAR=val --ignore-environment scheme']],
|
||||
\ 'python': [['#!/usr/bin/env VAR=val -S python -w -T']],
|
||||
\ 'wml': [['#!/usr/bin/env VAR=val --split-string wml']],
|
||||
\ 'nix': [['#!/usr/bin/env nix-shell']],
|
||||
\ }
|
||||
|
||||
func Run_script_detection(test_dict)
|
||||
|
Reference in New Issue
Block a user