nvim-neorg / tree-sitter-norg

A TreeSitter parser for the Neorg File Format
MIT License
99 stars 14 forks source link

MacOS | TSInstallSync norg #48

Closed NachoNievaG closed 1 year ago

NachoNievaG commented 1 year ago

I'm trying to install the TS Parser using gcc-12 in macOS as the following: image

and i'm getting the following error: image

i tried some workarounds that i found here but i'm still not able to install the parser

i'm using the following nvim version:

NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@HMBRW-A-001-M1-004.local

if there is something else that i can bring your for context, or if i'm missing a detail, please let me know Thank you in advanced and thank you for the hard work!

g-battaglia-h-farm commented 1 year ago

This worked for me:

brew install gcc@12
CC="/opt/homebrew/bin/gcc-12" nvim
CC="/opt/homebrew/bin/gcc-12" nvim -c "TSInstallSync norg"
NachoNievaG commented 1 year ago

Thank you @g-battaglia-h-farm , that actually works. Closing