feat(neovim): update config

This commit is contained in:
Felix Schröter 2020-11-14 11:18:13 +01:00
parent 5a6de0b6c8
commit 906f41da4d
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
6 changed files with 12 additions and 12 deletions

View file

@ -2,7 +2,7 @@ if did_filetype()
finish
endif
if getline(1) =~ '^#!.*nix-shell'
let s:matches = matchlist(getline(2), '^#!.*nix-shell -i \([^ \t\n]\+\)')
let s:matches = matchlist(getline(2), '^#!.*nix-shell .*-i \([^ \t\n]\+\)')
let s:command = s:matches[1]
echo s:command
if s:command != ''