summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lua/conf/plugins.lua30
1 files changed, 24 insertions, 6 deletions
diff --git a/lua/conf/plugins.lua b/lua/conf/plugins.lua
index 0b9bbf8..366b02f 100644
--- a/lua/conf/plugins.lua
+++ b/lua/conf/plugins.lua
@@ -52,15 +52,33 @@ require('dep') {
-- note taking --------------------------------------------------------------
{ 'nvim-neorg/neorg',
- config = function()
- if package.loaded['nvim-treesitter'] then
- vim.cmd(':Neorg sync-parsers<CR>')
- end
- end,
+ branch = '*',
requires = {
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
- 'folke/zen-mode.nvim'
+ 'folke/zen-mode.nvim',
+ { 'vhyrro/luarocks.nvim',
+ config = function()
+ -- NOTE: you need the lua.h header file for lua version 5.1 and
+ -- luarocks on void linux run: xbps-install luarocks lua51-devel
+
+ local output = ""
+ local function cbstd(_, data, _)
+ data = table.concat(data)
+ data = data:gsub("\r", "\n")
+ output = output..data
+ end
+ -- actually start the build here
+ vim.fn.jobstart({ "nvim", "-l", "build.lua" }, {
+ on_stdout = cbstd,
+ on_stderr = cbstd,
+ on_exit = function()
+ -- return build status as a notification
+ vim.notify(output, vim.log.levels.INFO, { title = misc.appid })
+ end
+ })
+ end
+ }
},
deps = { 'nvim-neorg/neorg-telescope',
requires = 'nvim-telescope/telescope.nvim'