fix(neovim): add missing scripts.vim

This commit is contained in:
Felix Schröter 2020-10-20 15:47:53 +02:00
parent 8a36ad5137
commit d29f2d1cc8
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
2 changed files with 6 additions and 4 deletions

View file

@ -80,4 +80,6 @@ in {
withNodeJs = true; withNodeJs = true;
withPython = false; withPython = false;
}; };
xdg.configFile."nvim/scripts.vim".source = ./scripts.vim;
} }

View file

@ -10,13 +10,13 @@ if getline(1) =~ '^#!.*nix-shell'
call dist#ft#SetFileTypeSH(s:command) call dist#ft#SetFileTypeSH(s:command)
elseif s:command == 'zsh' elseif s:command == 'zsh'
set ft=zsh set ft=zsh
elseif s:command =~ '^gnumake\d*\>' elseif s:command =~ 'make\>'
set ft=make set ft=make
elseif s:command =~ '^nodejs' elseif s:command =~ '^node\(js\)\=\>\|^js\>'
set ft=javascript set ft=javascript
elseif s:command =~ '^ghc' elseif s:command =~ '^ghci'
set ft=haskell set ft=haskell
elseif s:command =~ '^python' elseif s:command =~ 'python'
set ft=python set ft=python
endif endif
endif endif