Bug 279293

Summary: editors/neovim: Add tree-sitter parsers
Product: Ports & Packages Reporter: Laurent Chardon <laurent.chardon>
Component: Individual Port(s)Assignee: Adam Weinberger <adamw>
Status: Closed FIXED    
Severity: Affects Only Me CC: markj, oleg
Priority: --- Flags: bugzilla: maintainer-feedback? (adamw)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
neovim add tree-sitter parsers none

Description Laurent Chardon 2024-05-25 11:55:29 UTC
Created attachment 250949 [details]
neovim add tree-sitter parsers

neovim 0.10.0 requires the parsers to be present. Otherwise an error is thrown when a file of type c, vim, vimdoc, bash, query, python, markdown or lua is opened.

Changes:
- Add bundled parsers
- Cleanup dependencies

QA:
- poudriere: OK
- portlint: no new warning
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2024-05-25 21:17:10 UTC
*** Bug 279238 has been marked as a duplicate of this bug. ***
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-05-25 21:45:51 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=92df04ca7d17b7083d05f5305b4b9f7088a66a91

commit 92df04ca7d17b7083d05f5305b4b9f7088a66a91
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2024-05-25 21:39:53 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2024-05-25 21:39:53 +0000

    editors/neovim: Include tree-sitter parsers

    Neovim now expects a number of tree-sitter parsers to be included in
    a base installation, but they must be fetched, built, and installed
    separately.

    Without the parsers, things like `:help [...]` produces warnings but
    still technically works.

    PR:             279293
    Submitted by:   Laurent Chardon

 editors/neovim/Makefile  | 43 +++++++++++++++++++++++++++++++++++--------
 editors/neovim/distinfo  | 22 +++++++++++++++++-----
 editors/neovim/pkg-plist | 10 +++++++++-
 3 files changed, 61 insertions(+), 14 deletions(-)
Comment 3 Adam Weinberger freebsd_committer freebsd_triage 2024-05-25 21:46:48 UTC
Committed with small modifications. Thank you so much for doing the work here, Laurent!
Comment 4 Mark Johnston freebsd_committer freebsd_triage 2024-05-28 11:35:57 UTC
*** Bug 279359 has been marked as a duplicate of this bug. ***