feat(nvim): add hmts.nvim
This commit is contained in:
parent
31012a6274
commit
0c591c0435
6 changed files with 43 additions and 19 deletions
|
|
@ -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 = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue