From 3af041205aa51773f0f890a6c59aa134a4931edd Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Sun, 26 Feb 2023 21:40:29 -0500 Subject: update with treesitter --- after/plugin/treesitter.lua | 18 ++++++++++++++++++ 1 file changed, 18 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..79f7c8d --- /dev/null +++ b/after/plugin/treesitter.lua @@ -0,0 +1,18 @@ +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" (the four listed parsers should always be installed) + ensure_installed = { "javascript", "typescript" }, + + -- 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, + + additional_vim_regex_highlighting = false, + }, +} -- cgit v1.1