From 3db7c943e7c954c6e22ef6077b8d6ae489c91edc Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Tue, 7 Oct 2025 13:52:08 -0400 Subject: Better Module Structure and knap live preview --- .config/nvim/lua/plugins/treesitter.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .config/nvim/lua/plugins/treesitter.lua (limited to '.config/nvim/lua/plugins/treesitter.lua') diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..b75b2b3 --- /dev/null +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,16 @@ +require'nvim-treesitter.configs'.setup { + ensure_installed = { "c" }, + sync_install = false, + auto_install = true, + + highlight = { + enable = true, + + -- Setting this to true will run `:h syntax` and tree-sitter at the same time. + -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). + -- Using this option may slow down your editor, and you may see some duplicate highlights. + -- Instead of true it can also be a list of languages + additional_vim_regex_highlighting = false, + }, +} + -- cgit v1.2.3