From a315cff2d93c880e32da9a3fb90ca03c28340c4d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 30 Mar 2023 23:13:54 +0400 Subject: =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BF=D0=B0=D1=80=D1=81=D0=B5=D1=80=D0=B0=20=D1=84=D0=B0?= =?UTF-8?q?=D0=B9=D0=BB=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Valentin Popov --- lua/plugins.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index af108c4..bc85876 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -38,7 +38,20 @@ return require('packer').startup(function(use) } -- Расширенная подсветка синтаксиса - use 'nvim-treesitter/nvim-treesitter' + use { + 'nvim-treesitter/nvim-treesitter', + config = function() + require('nvim-treesitter.configs').setup { + ensure_installed = { 'javascript', 'lua', 'php', 'rust', 'typescript' }, + sync_install = false, + auto_install = true, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + } + } + end, + } -- Автоматическое закрытие скобок use { -- cgit v1.2.3