Bug 279293 - editors/neovim: Add tree-sitter parsers
Summary: editors/neovim: Add tree-sitter parsers
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Adam Weinberger
URL:
Keywords:
: 279238 279359 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-05-25 11:55 UTC by Laurent Chardon
Modified: 2024-05-28 11:35 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (adamw)


Attachments
neovim add tree-sitter parsers (6.59 KB, patch)
2024-05-25 11:55 UTC, Laurent Chardon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***