一:treesitter/highlighte: Eerror executing lua: /usr/.../query.lua:161: query: invaild node type at 2349。二:还有 [c]: in function其他的类型的文件,比如c和tex都没问题,当然那个lua的Language parser我也安装好了,现在搜索了半天不清楚怎么弄,所以想请教一下。还有想请教一下是不是不需要手动的输...
官方地址:GitHub - nvim-treesitter/nvim-treesitter: Nvim Treesitter configurations and abstraction layer 安装 use({'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}) 复制,粘贴,然后 PackerInstall,感觉没啥好说的。。。 配置 我的使用非常简单,感觉已经满足我对代码高亮的需求了 require'nvim...
require 'nvim-treesitter.install'.compilers = { "clang", "gcc" } Mingw toolchain Since this is using the well tested compilers that we use on Linux/MacOS it should work fairly easy and without any surprises. Install git (not required on newer versions of Windows 10, tar is installed and...
1 npm install tree-sitter-cli 方法2,直接下载二进制文件: 1 2 https://github.com/tree-sitter/tree-sitter/releases/tag/v0.22.6 wget https://github.com/tree-sitter/tree-sitter/releases/download/v0.22.6/tree-sitter-linux-x64.gz 相关资源 github地址:https://github.com/nvim-treesitter/...
"nvim-treesitter/nvim-treesitter", opts = { ensure_installed = { "bash", "c", "cpp", "json", "lua", "python", }, }, }, -- add any tools you want to have installed below { "williamboman/mason.nvim", opts = { ensure_installed = { ...
配置#Copynvim ~/.config/nvim/after/plugin/nvim-treesitter.lua local status, treesitter = pcall(require, "nvim-treesitter.configs") if (not status) then return end treesitter.setup { highlight = { enable = true, disable = {} }, indent = { enable = false, disable = {} }, ...
要为突出显示组永久添加此链接,可以使用Neovimnvim_set_hl函数。
PS C:\Users\dev\AppData\Local\nvim-data\plugged\nvim-treesitter\parser> lsd bash.so cpp.so dockerfile.so html.so latex.so ninja.so ru
Error detected while processing /home/strife/.local/share/nvim/plugged/nvim-treesitter/plugin/nvim-treesitter.lua: E5113: Error while calling lua chunk: .../plugged/nvim-treesitter/lua/nvim-treesitter/configs.lua:104: attempt to call field 'nvim_create_augroup' (a nil value) stack ...