The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Source A File Every Time It's Saved In Neovim

TODO: Pull subtitle into page object code_start_default_section code_end_default_section

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Source A File Every Time It's Saved In Neovim


This is what I'm using when I'm working on Lua 
script for Neovim. It sources/reloads the file
every time I save it. 

NOTE: THIS ISN"T CURRNET WORKING

-- code/
-- lua

function start_source_buffer_on_save()
  print("Activated start_source_buffer_on_save")
  vim.api.nvim_create_autocmd("BufWritePost", {
    group = vim.api.nvim_create_augroup("AutoRunCurrentFile", { clear = true }),
    pattern = vim.api.nvim_buf_get_name(0),
    callback = function()
      vim.cmd("so %")
      -- print("got save")
    end,
  })
end

start_source_buffer_on_save()

-- /code


Super handy little chunk of code



-- categories
-- Neovim 
-- Lua 

-- metadata
-- date: 2023-10-21 15:53:36
-- id: 2x5tc3no
-- site: aws
-- type: draft 
-- status: published