From a623fed63460d6d810605ce1ce858a58a5b222f7 Mon Sep 17 00:00:00 2001 From: Sakamoto Date: Tue, 12 May 2026 18:31:15 -0500 Subject: init --- dot_config/nvim/lua/plugins/treesitter.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 dot_config/nvim/lua/plugins/treesitter.lua (limited to 'dot_config/nvim/lua/plugins/treesitter.lua') diff --git a/dot_config/nvim/lua/plugins/treesitter.lua b/dot_config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..c8f8919 --- /dev/null +++ b/dot_config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,22 @@ +return { -- Highlight, edit, and navigate code + 'nvim-treesitter/nvim-treesitter', + build = ':TSUpdate', + branch = "main", + dependencies = { + "nvim-treesitter/nvim-treesitter-context" + }, + opts = { + ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc', 'markdown_inline', 'rust' }, + auto_install = true, + highlight = { + enable = true, + -- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules. + -- If you are experiencing weird indenting issues, add the language to + -- the list of additional_vim_regex_highlighting and disabled languages for indent. + additional_vim_regex_highlighting = { 'ruby', 'markdown' }, + }, + indent = { enable = true, disable = { 'ruby' } }, + }, + config = function(_, opts) + end, +} -- cgit v1.2.3