Is this wanted behaviour?
The negative numbers have a different color compared to positive numbers:

Can someone reproduce this?
Is this wanted behaviour?
The negative numbers have a different color compared to positive numbers:

Can someone reproduce this?
not seeing it here:
![]()
maybe update TreeSitter grammar?
You mean the SC treesitter from here? GitHub - madskjeldgaard/tree-sitter-supercollider: SuperCollider grammar for the tree-sitter code parser
Iβm not using it currently.
Edit: I had the treesitter installed, but Supercollider was commented out.
Now it looks like this

Thanks!
I am struggling to get nvim-treesitter syntax highlighting to work. Donβt quite know where to go identify the issue.
Iβve been using SCNvim successfully using LazyVim package manager for a while. I recently updated NVim to 0.11.5 to keep up with lazy, and however I handled these updates seemed to have broken treesitter syntax highlighting. Everything else in my setup is working fine, (I think). SCNvim does, at least.
Unless I misunderstand (entirely a possibility-- lua and nvim plugins arenβt clicking for me on a systematic level at all), nvim-treesitter is packaged up with lazyvim, and all one has to do to implement syntax highlighting is :TSInstall supercollider. Well, Iβve done this, and no dice. :checkhealth reveals no clues-- supercollider is listed as an install language.

Do I need to include anything in my lua/plugins/ directory?
highlighting needs to be enabled - you can do this inside your lazy setup or in an external file (and have your lazy treesitter require it) eg.
require("nvim-treesitter.configs").setup {
-- ensure_installed = {"supercollider", "rust", "html", "javascript"},
highlight = {
enable = true,
},
.--other settings here --
}
head on over to GitHub - nvim-treesitter/nvim-treesitter: Nvim Treesitter configurations and abstraction layer
and scroll down to Modules in the Quickstart section for a complete explanation
I have this treesitter.lua in my plugin folder:
return {
'nvim-treesitter/nvim-treesitter',
config = function()
require('nvim-treesitter.configs').setup {
ensure_installed = {
'c',
'cpp',
'c_sharp',
'zig',
'lua',
'html',
'javascript',
'css',
'scss',
'tsx',
'typescript',
'json',
'yaml',
'fennel',
'dockerfile',
'query',
'cmake',
'gdscript',
'markdown',
'vimdoc',
'supercollider',
},
-- indent = {
-- enable = true,
-- },
highlight = {
enable = true,
disable = {},
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = '<Enter>',
node_incremental = '<Enter>',
node_decremental = '<BS>',
},
},
textobjects = {
select = {
enable = true,
keymaps = {
-- You can use the capture groups defined in textobjects.scm
['af'] = '@function.outer',
['if'] = '@function.inner',
['ac'] = '@class.outer',
['ic'] = '@class.inner',
},
},
move = {
enable = true,
set_jumps = true, -- whether to set jumps in the jumplist
goto_next_start = {
[']m'] = '@function.outer',
[']]'] = '@class.outer',
},
goto_next_end = {
[']M'] = '@function.outer',
[']['] = '@class.outer',
},
goto_previous_start = {
['[m'] = '@function.outer',
['[['] = '@class.outer',
},
goto_previous_end = {
['[M'] = '@function.outer',
['[]'] = '@class.outer',
},
},
swap = {
enable = true,
swap_next = {
['<leader>sw'] = '@parameter.inner',
},
swap_previous = {
['<leader>sW'] = '@parameter.inner',
},
},
},
}
end,
}
βββ init.lua
βββ lazy-lock.json
βββ lua
βββ config
β βββ autocmds.lua
β βββ globals.lua
β βββ keymaps.lua
β βββ lazy.lua
β βββ options.lua
βββ plugins
β βββ blink-cmp.lua
β βββ blink-compat.lua
β βββ catppuccin.lua
β βββ fzf.lua
β βββ gruvbox.lua
β βββ lualine.lua
β βββ luasnip.lua
β βββ scnvim.lua
β βββ treesitter.lua
βββ servers
βββ utils
@Lilith93 @semiquaver. Thank you both. This treesitter.lua configuration works, for whatever reason, only when I require nvim-treesitter.config instead of nvim-treesitter.configs. The code warning suggests where I might go to investigate. but Iβm satisfied for now.

Back in business ![]()

Now to try and implement lua snippetsβ¦
I returned to Dusty Phillips book on Nvim / LazyVim for reference. What a gem.