Skip to content

Commit

Permalink
ci: trying to fix parser error
Browse files Browse the repository at this point in the history
  • Loading branch information
wllfaria committed Aug 16, 2024
1 parent bb337ff commit 2fa149e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
git clone --depth 1 https://github.com/L3MON4D3/LuaSnip ~/.local/share/nvim/site/pack/vendor/start/LuaSnip
ln -s "$(pwd)" ~/.local/share/nvim/site/pack/vendor/start
- name: Install Ledger Tree-sitter parser
run: |
export PATH="${PWD}/_neovim/bin:${PATH}"
nvim --headless -c 'TSInstallSync ledger' -c 'qa'
- name: Run tests
run: |
export PATH="${PWD}/_neovim/bin:${PATH}"
Expand Down
1 change: 0 additions & 1 deletion lua/tests/parser_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ describe("parser", function()
local parser = require("ledger.parser")

before_each(function()
require("nvim-treesitter.install").ensure_installed("ledger")
vim.cmd.enew()
vim.bo.filetype = "ledger"
end)
Expand Down
12 changes: 12 additions & 0 deletions scripts/minimal_init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,15 @@ set rtp+=../nvim-cmp
set rtp+=../nvim-treesitter

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

lua << EOF
require('nvim-treesitter').setup {
ensure_installed = { "ledger" },
highlight = {
enable = true,
},
}
EOF

0 comments on commit 2fa149e

Please sign in to comment.