feat(nvim): add hmts.nvim

This commit is contained in:
Moritz Böhme 2023-08-11 18:59:52 +02:00
parent 31012a6274
commit 0c591c0435
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
6 changed files with 43 additions and 19 deletions

View file

@ -50,22 +50,22 @@ in
${exportedVariables}
'';
functions = {
gi = with pkgs; ''
gi = ''
set url https://www.gitignore.io/api
if test (count $argv) -eq 0
set choice ( curl -sL $url/list \
| string split "," \
| ${fzf}/bin/fzf -m \
| ${getExe pkgs.fzf} -m \
| string join "," )
else
set choice (string join "," $argv[1..])
end
if ${gum}/bin/gum confirm "Overwrite current .gitignore?"
${curl}/bin/curl -sL $url/$choice > .gitignore
if ${getExe pkgs.gum} confirm "Overwrite current .gitignore?"
${getExe pkgs.curl} -sL $url/$choice > .gitignore
else
${curl}/bin/curl -sL $url/$choice >> .gitignore
${getExe pkgs.curl} -sL $url/$choice >> .gitignore
end
'';
fish_greeting = "";