Configure Neovim In Lisp With Fennel??

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 37

  • @callyral
    @callyral Год назад +1

    configuring nvim with fennel got me into lisp, thanks!

  • @GOZES
    @GOZES 3 года назад +4

    Hmm more fennel + neovim videos would be awesome :)

  • @GavinFreeborn
    @GavinFreeborn  3 года назад +1

    For those of you who want to see what a whole neovim config in fennel would look like here you go github.com/s1n7ax/dotnvim I recommend checking out aniseed to simplify the process.
    github.com/Olical/aniseed
    Also for those looking to chat and learn about fennel matrix.to/#/!rnpLWzzTijEUDhhtjW:matrix.org?via=matrix.org&via=libera.chat&via=half-shot.uk

  • @AtomToast
    @AtomToast 3 года назад +3

    I have been looking forward to this video and will probably give fennel a go eventually. Though I must say, I did find the syntax to be quite confusing. Maybe that could be helped by using a rainbow parenthesis highlighting plugin.
    Also you have have the fennel-lang link twice in the description and are missing the link to the matrix space that you still need to make

    • @GavinFreeborn
      @GavinFreeborn  3 года назад +1

      use vim's = operator to align the text. then you use the indentation to better read the code. It gives you a python like syntax and makes reading code much easier. It is one of those things you have to write a few times in order to read.
      Meant to put a link to aniseed in the other link. now it is fixed.

  • @rogerbaratheon4412
    @rogerbaratheon4412 2 года назад

    What a great video, thanks. Liked and subscribed.

  • @axeldahlberg7043
    @axeldahlberg7043 3 года назад

    Thanks for the video, great introduction :)

  • @zxcsa22
    @zxcsa22 8 месяцев назад

    Great intro

  • @auntiecarol
    @auntiecarol 9 месяцев назад

    Two years late to the party: can you "roundtrip", ie transpile existing lua to fennel? That would be a great paedagogical aid.

    • @GavinFreeborn
      @GavinFreeborn  9 месяцев назад

      Yep you can do that with a program called antifennel

  • @replikvltyoutube3727
    @replikvltyoutube3727 9 месяцев назад

    Have you ever make a minetest game? It's made in Lua. There's even a game called Loria made with fennel, but it's stopped development I think.

    • @GavinFreeborn
      @GavinFreeborn  9 месяцев назад +1

      I have unfortunately never had the pleasure to play with minetest.

  • @LabiaLicker
    @LabiaLicker Год назад

    As I see it Fennel offers up a way to use lisp for development and then actually convert it to something that can be used irl.

  • @archuser7607
    @archuser7607 3 года назад

    Hey I recently installed artix linux minimal with runit after that I compiled and installed dwm dmenu and st then I tried installing Luke amith larbs but after successfully installing larbs still default dwm ui starts every time I boot via exec dwm xinitrc

  • @ranjithshegde
    @ranjithshegde 3 года назад

    I am curious as to your choice of nvim-compe. As in your other videos you spoke of the excellent mu-complete. Completion-nvim basically is like mu-complete in the sense that its an "auto" mode over vim's ins-complete, and has chain completion like mu-complete and all ins-complete sources chained as desired

    • @GavinFreeborn
      @GavinFreeborn  3 года назад

      I originally used completion-nvim but found the chain completion to have issues as well as the general lack of development gives the impression they won't be fixed. Curr
      I use compe for most completion and manually call the other completions as needed

  • @lamprospitsillou6325
    @lamprospitsillou6325 3 года назад +1

    Some good vid ideas:
    Kakoune text editor (only one video from DT)
    Helix text editor ( almost no doc, a video will definitely go in the readme i think)
    There are a lot of rust application really worth our time : grex (regex helper) , sd (tr and sed replacement ), fd (faster find replacement , rg (faster grep replacement) , skim (fuzzy finder with real time command input)

  • @nanjigen1580
    @nanjigen1580 3 года назад

    How does one embed fennel into mpv?

  • @11WicToR11
    @11WicToR11 3 года назад +1

    amazing video! Just curious, isnt this process of converting fennel to lua "transpiling"? *Language* to another *language*, as compared to "compiling" which would mean *language* to *binary* ....its whatever, i m just curious. Anyway I m so sad that you have so little views, this is definitelly content deserving more!

    • @GavinFreeborn
      @GavinFreeborn  3 года назад +1

      I don't think transpiling actually has a legal definition. It's just a term people made up for tools that compile to js. That's the main reason I don't use the term.
      Compile as an abstracted term from programming still makes sense imo. In the end you can call it what you want. Thanks for watching.

    • @fidelhviegas
      @fidelhviegas 2 года назад +1

      A compiler is a translator, and it doesn't matter if it translates to machine code or to another high-level language, it is still a compiler. A source-to-source compiler, or, as it is more commonly known today, a transpiler. The term transpiler, I believe, was coined in the early or mid 80s.

    • @conduitstruct
      @conduitstruct Год назад

      So a compiler is a transpiler + assembler?

  • @cherryramatis2508
    @cherryramatis2508 3 года назад

    Are you using emacs with exwm?

    • @GavinFreeborn
      @GavinFreeborn  3 года назад +4

      Shhh

    • @cherryramatis2508
      @cherryramatis2508 3 года назад

      @@GavinFreeborn hahaha oh my god

    • @AndersJackson
      @AndersJackson 3 года назад

      @@GavinFreeborn oh, you are infiltrating. :-)
      (emacs user myself, but not exwm)

  • @trejohnson7677
    @trejohnson7677 3 года назад

    A lisp compiling to Lua.

  • @Mawkler
    @Mawkler 3 года назад

    Oh hi mark

  • @basscass710
    @basscass710 3 года назад +3

    Gavin lets just emit it... You need emacs

  • @voiceofthetrue1849
    @voiceofthetrue1849 3 года назад +4

    That is the most horrible syntax to work with i have ever seen!!!

    • @evakuator8118
      @evakuator8118 3 года назад +3

      bruh, chill

    • @AndersJackson
      @AndersJackson 3 года назад +2

      Oh, it is so basic and easy to understand.
      () is list, so are (1 2 3)
      (function arg1 arg2 ...) is applying function on all the arguments. So first argument in a list is a function, and rest are used as arguments, and evaluated before they are send as argument to function. As any other language (except lazy evaluation languages, like Haskel)
      If you want to get a list of data, just apply function quote on it, or add a ' in front of the list, and it will not evaluater/execute the list.
      (first '(1 2 3)) will give you 1
      (rest '(1 2 3)) will give you (2 3)
      (first '(rest (1 2))) will give you value rest
      (first (rest '(1 2))) will give you value 2
      Only thing that is bad, is the square bracket use, instead of plain parenthesises.
      And if you really thinks that is the worst, you have not seen many language. Like Perl...

    • @jessejordache1869
      @jessejordache1869 2 года назад +1

      Everything is (opp arg[s]) EVERYTHING (or almost: obviously if is a ternary structure, so there are exceptions).
      So let your eyes forget about the parentheses, and the semantics are clear. Then focus on the parentheses, and the AST pops out at you. Plus, since the syntax is uniform all the way through, lisp's macroing ability is unparalleled.
      Lisp is to program compilation as C is to an idealized von Neumann machine.

    • @fidelhviegas
      @fidelhviegas 2 года назад

      LISP = Lots of Irritating Superfluous Parenthesis. I was never fond of the Lisp family of languages. I did kind of played around with Scheme for a while, but I still prefer procedural languages.

    • @jessejordache1869
      @jessejordache1869 2 года назад +1

      @@fidelhviegas It can be an acquired taste, especially if you're coming from ;function(args){body} languages, but it's dead simple.