Neovim Plugin From Scratch: Executing Markdown Blocks LIVE (Part 7)

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 9

  • @paulroux92
    @paulroux92 19 годин тому +11

    Dude's rewriting org mode in nvim

    • @xijnin
      @xijnin Годину тому

      Next video: "Adding emacs keybindings!"

  • @vidar8634
    @vidar8634 9 годин тому

    love the advent of christmas content! thx

  • @neoa6401
    @neoa6401 13 годин тому +1

    great video as always, and here is what i think to be a nicer way to overide the functions in chunks:
    local block = [[print(1)]]
    local chunk = load(block)
    setfenv(chunk, {
    print = function(x)
    print(x + 1)
    end
    })
    chunk(1)

    • @teej_dv
      @teej_dv  11 годин тому

      ya, i'm familiar with setfenv, but when I had tried this before I sometimes ran into problems with functions that were already defined and called recursively. I don't remember if I was messing something up or not, but I had some mixed results.

  • @SelmirAljic
    @SelmirAljic 9 годин тому

    Is it maybe better to store a reference to the original print function on startup? Capturing on the fly feels dangerous

  • @aamodjoshi2281
    @aamodjoshi2281 7 годин тому

    Yes to extending this plugin for other languages!

  • @WillEhrendreich
    @WillEhrendreich 20 годин тому +7

    Good lord. Try THAT VSC**e.