forked from IndianBoy42/tree-sitter-just
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to get some sort of CI for NeoVim specifically
- Loading branch information
Showing
5 changed files
with
8,488 additions
and
10,517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
" This script is used by CI" | ||
|
||
" Install vim-plug | ||
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() | ||
|
||
" Install treesitter | ||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} | ||
|
||
" Install our local workspace | ||
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" }, | ||
} | ||
|
||
call plug#end() | ||
|
||
lua <<ENDLUA | ||
|
||
require'nvim-treesitter.configs'.setup { | ||
ensure_installed = {"just"}, | ||
highlight = {enable = true}, | ||
indent = {enable = true}, | ||
} | ||
|
||
require"tree-sitter-just".setup {} | ||
|
||
ENDLUA |
Oops, something went wrong.