Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 10, 2024
1 parent 49d5f82 commit 1aec9b2
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,40 @@ jobs:
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage
mkdir -p ~/.config/nvim/
echo workspace: ${{ github.workspace }}
cat << 'EOF' > ~/.config/nvim/init.vim
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
require("nvim-treesitter.parsers").get_parser_configs().just = {
install_info = {
url = "${{ github.workspace }}/tree-sitter-just", -- local path or git repo
files = { "src/parser.c", "src/scanner.c" },
branch = "main",
-- use_makefile = true -- this may be necessary on MacOS (try if you see compiler errors)
},
maintainers = { "@IndianBoy42" },
}
lua <<ENDLUA
require'nvim-treesitter.configs'.setup {
ensure_installed = {"just"},
highlight = {enable = true},
indent = {enable = true},
}
require"tree-sitter-just".setup {}
ENDLUA
'EOF'

0 comments on commit 1aec9b2

Please sign in to comment.