nushell / tree-sitter-nu

A tree-sitter grammar for nu-lang, the language of nushell
MIT License
122 stars 27 forks source link

FIX: save with force the `hightlights.scm` file in *neovim` installation #19

Closed amtoine closed 1 year ago

amtoine commented 1 year ago

each time i update this repo in neovim i run the script at the end of the neovim installation file and each time i get the following error :laughing:

Error:
  × Destination file already exists
    ╭─[entry #1:10:1]
 10 │ mkdir $local
 11 │ http get ([$remote $file] | str join "/") | save ($local | path join $file)
    ·                                                  ─────────────┬────────────
    ·                                                               ╰── Destination file '/home/amtoine/.local/share/nvim/lazy/nvim-treesitter/queries/nu/highlights.scm' already exists
    ╰────
  help: you can use -f, --force to force overwriting the destination

this PR fixes this issue with save --force :ok_hand:

fdncred commented 1 year ago

Seems reasonable