feat: added nushell function
b7042c6f
1 file(s) · +10 −0
| 910 | 910 | } |
|
| 911 | 911 | } |
|
| 912 | 912 | ||
| 913 | + | def nvimf [] { |
|
| 914 | + | let file = (fd --type f --hidden --exclude .git | fzf --preview "bat --color=always {}") |
|
| 915 | + | if ($file | is-empty) { |
|
| 916 | + | echo "No file selected" |
|
| 917 | + | } else { |
|
| 918 | + | nvim $file |
|
| 919 | + | } |
|
| 920 | + | } |
|
| 921 | + | ||
| 922 | + | ||
| 913 | 923 | def ns [] { |
|
| 914 | 924 | rm -f ~/.nvim-startup.txt |
|
| 915 | 925 | nvim --headless --startuptime ~/.nvim-startup.txt +qa |