Skip to content

Adding additional tree-sitter grammars? #338

Description

@Lewenhaupt

Hi, I've been trying to get kulala.nvim to work but it has it's own tree-sitter grammar for the .http files. I've been looking at an existing issue in their repo (mistweaverco/kulala.nvim#627) and I can get as far as to building the grammar but I have no clue how to properly include it in nixCats nvim. I have a branch for my nixCats here: https://github.com/Lewenhaupt/nvim-nix/tree/kulala.

I'm probably not understanding the docs correctly, or missing where I should put it. But I can confirm that in all my attempts the regular syntax highlighting for lua and nix files work so I haven't at least broken allGrammars inclusion.

The error I'm getting:

Failed to install kulala_http parser. Please check your nvim-treesitter setup.
BufReadPost Autocommands for "*": Vim(append):Error executing lua callback: ...-neovim-unwrapped-0.11.2/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileType Autocommands for "http": Vim(append):Could not create parser dir ' /nix/store/blfm3nbxpl7kq9xfg6pz7s1j0lf57abf-vim-pack-dir/pack/myNeovimPackages/start/nvim-treesitter/parser ':  Vim:E739: Cannot create directory /nix/store/blfm3nbxpl7kq9xfg6pz7s1j0lf57abf-vim-pack-dir/pack/myNeovimPackages/start/nvim-treesitter/parser: read-only file system
stack traceback:
	[C]: in function '_with'
	...-neovim-unwrapped-0.11.2/share/nvim/runtime/filetype.lua:35: in function <...-neovim-unwrapped-0.11.2/share/nvim/runtime/filetype.lua:10>
	[C]: at 0x0063cb10
	[C]: in function 'pcall'
	...ir/pack/myNeovimPackages/start/oil.nvim/lua/oil/init.lua:761: in function 'callback'
	...NeovimPackages/start/oil.nvim/lua/oil/adapters/files.lua:270: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions