summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2024-04-08 18:33:13 -0400
committerSquibid <me@zacharyscheiman.com>2024-04-08 18:33:13 -0400
commitede5c88c6e451e14f94c56b7f301e9d1515e672d (patch)
tree2028146c0a9d93d8c0ca00569d7cdbc7761004f5
parent17a4457c0ecf531ba3060cbaeb8a062876d21a1a (diff)
downloadnvim-ede5c88c6e451e14f94c56b7f301e9d1515e672d.tar.gz
nvim-ede5c88c6e451e14f94c56b7f301e9d1515e672d.tar.bz2
nvim-ede5c88c6e451e14f94c56b7f301e9d1515e672d.zip
fix neorg so it works on v8.0.0 and make headlines stop overriding the
neorg header bullet points
Diffstat (limited to '')
-rw-r--r--after/plugin/headlines.lua3
-rw-r--r--after/plugin/neorg.lua7
-rw-r--r--lua/conf/plugins.lua30
3 files changed, 33 insertions, 7 deletions
diff --git a/after/plugin/headlines.lua b/after/plugin/headlines.lua
index fbb7146..be1ac57 100644
--- a/after/plugin/headlines.lua
+++ b/after/plugin/headlines.lua
@@ -12,7 +12,8 @@ headlines.setup {
"@neorg.headings.4.title",
"@neorg.headings.5.title",
"@neorg.headings.6.title"
- }
+ },
+ bullets = { "", "", "", "" }
},
markdown = {
headline_highlights = {
diff --git a/after/plugin/neorg.lua b/after/plugin/neorg.lua
index ec0b24a..21a6c0e 100644
--- a/after/plugin/neorg.lua
+++ b/after/plugin/neorg.lua
@@ -3,6 +3,13 @@ if not status_ok then
return
end
+local status_ok2, luarocks = pcall(require, "luarocks-nvim")
+if not status_ok2 then
+ return
+end
+
+luarocks.setup {}
+
local wsphome = (os.getenv("XDG_DOCUMENTS_DIR") or
(os.getenv("HOME").."/Documents")).."/notes/"
neorg.setup {
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'