Skip to content

Commit

Permalink
fix(docgen): this should work now i think (after 20 tries)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Feb 3, 2023
1 parent d1a9ea0 commit 72d3d49
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions docgen/minimal_init.vim
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
" Copied from: https://github.com/ThePrimeagen/refactoring.nvim/blob/master/scripts/minimal.vim

" Current neorg code
set rtp+=..
set rtp+=.

" For test suites
set rtp+=./plenary.nvim
set rtp+=./nvim-treesitter

set noswapfile

runtime! plugin/plenary.vim
runtime! plugin/nvim-treesitter.vim

lua << EOF
P = function(...)
print(vim.inspect(...))
end
require("nvim-treesitter").setup({})

local ok, module = pcall(require,'nvim-treesitter.configs')
if ok then
module.setup({})
end

package.path = "../lua/?.lua;" .. package.path
EOF
package.path = "../plenary.nvim/lua/?.lua;" .. package.path
package.path = "../nvim-treesitter/lua/?.lua;" .. package.path

runtime! plugin/plenary.vim
runtime! plugin/nvim-treesitter.vim
vim.cmd.TSInstallSync({
bang = true,
args = { "lua" },
})
EOF

0 comments on commit 72d3d49

Please sign in to comment.