From 2f3f91682f7b4a33f1791781bfa8eca4f7c9527a Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Wed, 13 May 2026 19:32:22 -0400 Subject: new system on gentoo --- archive/.config/nvim/lua/plugins/treesitter.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 archive/.config/nvim/lua/plugins/treesitter.lua (limited to 'archive/.config/nvim/lua/plugins/treesitter.lua') diff --git a/archive/.config/nvim/lua/plugins/treesitter.lua b/archive/.config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..268e13d --- /dev/null +++ b/archive/.config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,24 @@ +return { + 'nvim-treesitter/nvim-treesitter', + ft = { 'c', 'cpp', 'zig', 'lua', 'rust' }, + build = ':TSUpdate', + config = function() + require('nvim-treesitter.configs').setup { + -- Add languages to be installed here that you want installed for treesitter + ensure_installed = { 'c', 'cpp', 'lua', 'rust', 'vimdoc', 'vim', 'zig' }, + + -- Install parsers synchronously (only applied to `ensure_installed`) + sync_install = false, + + -- Automatically install missing parsers when entering buffer + -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally + auto_install = false, + + highlight = { + enable = true, + disable = function(_, bufnr) return vim.api.nvim_buf_line_count(bufnr) > 10000 end, + additional_vim_regex_highlighting = false, + }, + } + end, +} -- cgit v1.2.3