From 249b5005e4c286fb7858438f4e6731a6d44ae6f5 Mon Sep 17 00:00:00 2001 From: Nate Buttke Date: Wed, 16 Aug 2023 09:45:29 -0700 Subject: init --- after/plugin/treesitter.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 after/plugin/treesitter.lua (limited to 'after/plugin/treesitter.lua') diff --git a/after/plugin/treesitter.lua b/after/plugin/treesitter.lua new file mode 100644 index 0000000..46285d0 --- /dev/null +++ b/after/plugin/treesitter.lua @@ -0,0 +1,22 @@ +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" + ensure_installed = {"c", "cpp", "python", "go", "lua", "rust", "vim", + "vimdoc", "query" }, + + -- 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 = 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