From c5d4e4a23a397ae1dc68682734f2fe26d3adf0f0 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sat, 11 Feb 2023 12:51:08 +0000 Subject: Switched to lua and install various plugins --- .config/nvim/after/plugin/treesitter.lua | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .config/nvim/after/plugin/treesitter.lua (limited to '.config/nvim/after/plugin/treesitter.lua') diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua new file mode 100644 index 0000000..00aab20 --- /dev/null +++ b/.config/nvim/after/plugin/treesitter.lua @@ -0,0 +1,38 @@ +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" + ensure_installed = { + "bash", + "c", + "css", + "dockerfile", + "gitignore", + "help", + "html", + "javascript", + "json", + "lua", + "markdown", + "php", + "typescript", + "yaml", + }, + + -- 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 = { + -- `false` will disable the whole extension + 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 = true, + }, +} + -- cgit v1.2.3-13-gbd6f