Closed andreacfromtheapp closed 9 months ago
this works if I remove the condition. Need to figure out a place to put it.
local autorun = require("chuck-nvim.config").user.autorun
if autorun then
local ChuckAutoGroup = vim.api.nvim_create_augroup("ChuckAutoGroup", { clear = true })
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
group = ChuckAutoGroup,
pattern = { "*.ck" },
callback = function()
vim.api.nvim_command("ChuckLoop")
vim.api.nvim_clear_autocmds({ group = ChuckAutoGroup })
end,
})
end
the above goes in after/plugin/chuck-nvim.lua
but it isn't running for some reason: https://github.com/LazyVim/LazyVim/discussions/2393
found something related: https://github.com/folke/lazy.nvim/issues/59
autorun starts the layout but not chuck vm.... reopening.
autorun is flawed. may need refactoring to make it work https://github.com/MunifTanjim/nui.nvim/discussions/326
opening a fix issue instead.
add autorun option to launch the ui and start chuck when opening a chuck file the first time