mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-15 19:11:43 +01:00
Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# Note: this requires the latest 0.32.1 or later
|
||||
#
|
||||
# usage:
|
||||
# > source lisp_mode.nu
|
||||
# > (echo (+ 1 (* 3 2)))
|
||||
|
||||
def "+" [x, y] { $x + $y }
|
||||
|
||||
def "-" [x, y] { $x - $y }
|
||||
|
||||
def "*" [x, y] { $x * $y }
|
||||
|
||||
def "/" [x, y] { $x / $y }
|
||||
|
||||
def in [x, y] { $x in $y }
|
||||
|
||||
def not-in [x, y] { $x not-in $y}
|
||||
|
||||
def "<" [x, y] { $x < $y }
|
||||
|
||||
def "<=" [x, y] { $x <= $y }
|
||||
|
||||
def ">" [x, y] { $x > $y }
|
||||
|
||||
def ">=" [x, y] { $x >= $y }
|
||||
|
||||
def "==" [x, y] { $x == $y }
|
||||
|
||||
def "!=" [x, y] { $x != $y }
|
||||
|
||||
def "=~" [x, y] { $x =~ $y }
|
||||
|
||||
def "!~" [x, y] { $x !~ $y }
|
||||
|
||||
def array [...rest] { echo $rest }
|
||||
|
||||
Reference in New Issue
Block a user